[yt-users] python error on ncsa-ember

Agarwal, Shankar sagarwal at ku.edu
Thu Jan 6 06:37:22 PST 2011


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



More information about the yt-users mailing list