[yt-users] python error on ncsa-ember

Agarwal, Shankar sagarwal at ku.edu
Thu Jan 6 08:12:03 PST 2011


Hi John,

Thanks, that worked. Earlier I had the PATH_TO_YT appended instead of up front.

-Shankar


-----Original Message-----
From: yt-users-bounces at lists.spacepope.org on behalf of John Wise
Sent: Thu 1/6/2011 9:58 AM
To: Discussion of the yt analysis package
Subject: Re: [yt-users] python error on ncsa-ember
 
Change your path to include yt's copy of python before the system one.

set path = ( $PATH-TO-YT/bin $path )

John

On 01/06/2011 10:24 AM, Agarwal, Shankar wrote:
> Hi John,
>
> I made those changes. But it seems like the following keeps launching Ember's python instead of YT's python-2.6.3.
>
> [sagarwal at ember ~]$ which python
> /usr/bin/python
>
> [sagarwal at ember ~]$ python
> Python 2.6 (r26:66714, May  5 2010, 14:02:39)
> [GCC 4.3.4 [gcc-4_3-branch revision 152973]] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>>
>
>
>
> -Shankar
>
>
>
>
>
> -----Original Message-----
> From: yt-users-bounces at lists.spacepope.org on behalf of John Wise
> Sent: Thu 1/6/2011 8:45 AM
> To: Discussion of the yt analysis package
> Subject: Re: [yt-users] python error on ncsa-ember
>
> 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
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________
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