[yt-users] python error on ncsa-ember

John Wise jwise at astro.princeton.edu
Thu Jan 6 06:45:12 PST 2011


These problems are related.  Problem 2 is happening because you're 
trying to append $PYTHONPATH to itself when it doesn't exist in the 
first place, as the error message says.  Remove the ":$PYTHONPATH" from 
the setenv command, and it should work.  Then source your .cshrc file, 
and you should be able to import yt in python.

John

On 01/06/2011 09:37 AM, Agarwal, Shankar wrote:
> Hi,
>
> Problem 1:
>
> I recently installed enzo1.5 + YT on NCSA-Ember with the help of Enzo community. I am able to successfully use iyt and ipython. However if I try to execute the following command, i get an error:
>
> [sagarwal at ember RD0001]$ python hop_mass_sum.py
> Traceback (most recent call last):
>    File "hop_mass_sum.py", line 1, in<module>
>      from yt.mods import *
> ImportError: No module named yt.mods
>
>
>
> Here is the hop_mass_sum.py script:
>
> from yt.mods import *
> fn = "RedshiftOutput0001"
> pf = load(fn)
> halos = HaloFinder(pf)
> halos.write_out("HopAnalysis.out")
>
>
> Problem 2:
>
> I have a .cshrc file to which I have added:
> setenv PYTHONPATH /u/ac/sagarwal/software/enzo/src/yt/doc/yt-x86_64/lib/python2.6/site-packages:$PYTHONPATH
>
> But it says: PYTHONPATH Undefined variable.
>
> So I have modified it to:
> setenv PYTHONPATH /u/ac/sagarwal/software/enzo/src/yt/doc/yt-x86_64/lib/python2.6/site-packages
>
>
> Let me know if these two problems might be related.
>
> Regards
> Shankar
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org



More information about the yt-users mailing list