<div dir="ltr">Yeah, I did figure out the problem. It's that the debian/ubuntu packaging program dpkg-source doesn't include newly created empty files into the diff that it uses to build the updated package:<div><br>

</div><div>dpkg-source: warning: newly created empty file 'yt/frontends/_skeleton/misc.py' will not be represented in diff<br></div><div>dpkg-source: warning: newly created empty file 'yt/frontends/_skeleton/definitions.py' will not be represented in diff<br>

</div><div>dpkg-source: warning: newly created empty file 'yt/frontends/athena/misc.py' will not be represented in diff<br></div><div>dpkg-source: warning: newly created empty file 'yt/frontends/athena/__init__.py' will not be represented in diff<br>

</div><div><br></div><div>The last one is the culprit, because as a result the athena/__init__.py file doesn't make it into the package, and hence the import fails. Arrgh.</div><div><br></div><div>For the life of me I couldn't figure out how to force dpkg-source to include those newly created empty files, and so in the end I opted for the slightly hackish fix of adding a comment ("### comment to allow inclusion in dpkg-source diff file.") to those files. Now the package works, and I've just uploaded it to my PPA. Should be available in a few hours, once it's built.</div>

<div><br></div><div>Cheers,</div><div><br></div><div>Mike</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 20, 2013 at 11:25 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hey Mike,<br>
<br>
I just verified, and in stable we *do* add Athena as a subpackage, so<br>
I think this should be working.  Any ideas as to what might be<br>
different between the install and the deb?<br>
<br>
-MAtt<br>
<div><div><br>
On Wed, Feb 20, 2013 at 2:23 PM, Michael Kuhlen <<a href="mailto:mqk@astro.berkeley.edu" target="_blank">mqk@astro.berkeley.edu</a>> wrote:<br>
> OK, the updated Ubuntu packages are available. I just tried them out on my<br>
> ubuntu 12.04.2 LTS and yt-devel works great. With the stable version (yt) I<br>
> get an import error:<br>
><br>
> In [1]: from yt.mods import *<br>
> ---------------------------------------------------------------------------<br>
> ImportError                               Traceback (most recent call last)<br>
> <ipython-input-1-c31905f7fc2e> in <module>()<br>
> ----> 1 from yt.mods import *<br>
><br>
> /usr/lib/pymodules/python2.7/yt/mods.py in <module>()<br>
>      97     GDFStaticOutput, GDFFieldInfo, add_gdf_field<br>
>      98<br>
> ---> 99 from yt.frontends.athena.api import \<br>
>     100     AthenaStaticOutput, AthenaFieldInfo, add_athena_field<br>
>     101<br>
><br>
> ImportError: No module named athena.api<br>
><br>
><br>
> This is weird, because when I install that exact same changeset<br>
> (329d11eeff22) from source (with python ./setup.py develop<br>
> --prefix=$HOME/local) it works just fine. I'll have to investigate. But if<br>
> you're ok with using the development package (yt-devel), then you should be<br>
> good to go.<br>
><br>
> Mike<br>
><br>
><br>
><br>
><br>
> On Wed, Feb 20, 2013 at 2:02 AM, Michael Kuhlen <<a href="mailto:mqk@astro.berkeley.edu" target="_blank">mqk@astro.berkeley.edu</a>><br>
> wrote:<br>
>><br>
>> Hi Roberto<br>
>><br>
>> I'm the maintainer of that ubuntu PPA, sorry you're having trouble with<br>
>> it. I think maybe all you need to do is to run 'sudo add-apt-repository<br>
>> ppa:kuhlen/ppa'. Note the trailing '/ppa'. Can you give that a try?<br>
>><br>
>> Otherwise, can you look under /etc/apt/sources.list.d/ and see if there's<br>
>> a file named 'kuhlen-ppa-precise.list'? If there is, what is its content?<br>
>><br>
>> I've been a bit remiss in keeping these packages up-to-date, but spurned<br>
>> by your email I just re-packaged updates to the most recent versions (yt:<br>
>> 329d11eeff22, yt-devel: 09a0fd75818b). Should be available there some time<br>
>> tomorrow.<br>
>><br>
>> Cheers,<br>
>> Mike<br>
>><br>
>><br>
>><br>
>><br>
>> On Tue, Feb 19, 2013 at 11:32 PM, Kacper Kowalik <<a href="mailto:xarthisius.kk@gmail.com" target="_blank">xarthisius.kk@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> On 02/18/2013 12:58 AM, trobolo dinni wrote:<br>
>>> > Hi Nathan,<br>
>>> ><br>
>>> > sorry for the delay in replying.<br>
>>> ><br>
>>> > To install yt on the system python I followed the procedure you<br>
>>> > mentioned:<br>
>>> > entered the yt directory cloned from bitbucket, run "python setup.py<br>
>>> > install".<br>
>>> > I did that again to check another time but the error persists.<br>
>>> ><br>
>>> > As I said I just reinstalled the same Ubuntu version on the same<br>
>>> > computer<br>
>>> > where before yt was usually installed by following the procedure above<br>
>>> > and<br>
>>> > it was normally running.<br>
>>> ><br>
>>> > Could reinstall cython help to solve the problem?<br>
>>> ><br>
>>> > Thanks,<br>
>>> >                   Roberto<br>
>>><br>
>>> Hi Roberto,<br>
>>> could you run the following command in your $YT_HG directory:<br>
>>><br>
>>> find . -name "data_point_utilities.*"<br>
>>><br>
>>> and post the output? Also if you could try installing again but provide<br>
>>> us with build.log.gz from:<br>
>>><br>
>>> cd $YT_HG<br>
>>> bash ./clean.sh<br>
>>> python setup.py build | gzip --fast > build.log.gz<br>
>>><br>
>>> What version of ubuntu are you using?<br>
>>> Cheers,<br>
>>> Kacper<br>
>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> yt-users mailing list<br>
>>> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
>>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>><br>
>><br>
>><br>
>><br>
>> --<br>
>> *********************************************************************<br>
>> *                                                                   *<br>
>> *  Dr. Michael Kuhlen              Theoretical Astrophysics Center  *<br>
>> *  email: <a href="mailto:mqk@astro.berkeley.edu" target="_blank">mqk@astro.berkeley.edu</a>   UC Berkeley                      *<br>
>> *  cell phone: <a href="tel:%28831%29%20588-1468" value="+18315881468" target="_blank">(831) 588-1468</a>      B-116 Hearst Field Annex # 3411  *<br>
>> *  skype username: mikekuhlen      Berkeley, CA 94720               *<br>
>> *                                                                   *<br>
>> *********************************************************************<br>
><br>
><br>
><br>
><br>
> --<br>
> *********************************************************************<br>
> *                                                                   *<br>
> *  Dr. Michael Kuhlen              Theoretical Astrophysics Center  *<br>
> *  email: <a href="mailto:mqk@astro.berkeley.edu" target="_blank">mqk@astro.berkeley.edu</a>   UC Berkeley                      *<br>
> *  cell phone: <a href="tel:%28831%29%20588-1468" value="+18315881468" target="_blank">(831) 588-1468</a>      B-116 Hearst Field Annex # 3411  *<br>
> *  skype username: mikekuhlen      Berkeley, CA 94720               *<br>
> *                                                                   *<br>
> *********************************************************************<br>
><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>*********************************************************************<br>*                                                                   *<br>*  Dr. Michael Kuhlen              Theoretical Astrophysics Center  *<br>

*  email: <a href="mailto:mqk@astro.berkeley.edu" target="_blank">mqk@astro.berkeley.edu</a>   UC Berkeley                      *<br>*  cell phone: <a href="tel:%28831%29%20588-1468" value="+18315881468" target="_blank">(831) 588-1468</a>      B-116 Hearst Field Annex # 3411  *<br>
*  skype username: mikekuhlen      Berkeley, CA 94720               *<br>
*                                                                   *<br>*********************************************************************<br>
</div></div>