[yt-users] running yt on Ranger

Yuan Li bear0980 at gmail.com
Mon Nov 5 14:17:38 PST 2012


Hi Britton,

That worked! It is good to know what the activate script does!

I never had to set all these environment variables on the other machines
though... But anyway, it is working now. Thanks a lot!

Yuan


On Mon, Nov 5, 2012 at 9:09 AM, Britton Smith <brittonsmith at gmail.com>wrote:

> Hi Yuan,
>
> The main thing the activate script does is set the following environment
> variables:
> export YT_DEST = path to your whole yt stack (for you this would be
> /share/home/01688/yuanli/source/yt-x86_64/)
> export PATH=$PATH:$YT_DEST/bin
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$YT_DEST/lib
> export PYTHONPATH=$YT_DEST/lib/python2.7/site-packages
>
> If you are manually setting all of those environment variables, then you
> don't need to run activate as well.  However, it looks like you're only
> setting PATH and then setting PATH again with what's meant for
> LD_LIBRARY_PATH.  I would recommend just running the activate script before
> using yt.
>
> Britton
>
> On Sun, Nov 4, 2012 at 3:52 PM, Yuan Li <yuan at astro.columbia.edu> wrote:
>
>> Hi all,
>>
>> I am having some trouble running yt on Ranger, and I am confused
>> because a couple of other people load the same modules and they can
>> run yt without any problem.
>>
>> Right now, I can only run yt after I activate it (source
>> ~/source/yt-x86_64/bin/activate). If I do not activate yt, and I try
>> to import yt in python (I use the one that came with yt):
>> from yt.mods import *
>>
>> I get this error:
>> ImportError: libpng15.so.15: cannot open shared object file: No such
>> file or directory
>>
>> The module I load before running yt is this:
>> module swap intel gcc/4.4.3
>> which inactivates these modules:
>> Inactive Modules:
>>   1) mvapich-devel     2) acml     3) hdf5
>>
>>
>> In my .bashrc file, I have:
>> export PATH=$PATH:/share/home/01688/yuanli/source/yt-x86_64/bin
>> export
>> PATH=$PATH:/share/home/01688/yuanli/source/yt-x86_64/lib/python2.7/site-packages
>>
>>
>> Hope there is an easy fix.
>>
>> Thank you!
>> Yuan
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20121105/da28ccf5/attachment.html>


More information about the yt-users mailing list