Hi Britton,<br><br>That worked! It is good to know what the activate script does! <br><br>I never had to set all these environment variables on the other machines though... But anyway, it is working now. Thanks a lot!<br><br>
Yuan<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 5, 2012 at 9:09 AM, Britton Smith <span dir="ltr"><<a href="mailto:brittonsmith@gmail.com" target="_blank">brittonsmith@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Yuan,<br><br>The main thing the activate script does is set the following environment variables:<br>export YT_DEST = path to your whole yt stack (for you this would be /share/home/01688/yuanli/source/yt-x86_64/)<br>
export PATH=$PATH:$YT_DEST/bin<br>
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$YT_DEST/lib<br>export PYTHONPATH=$YT_DEST/lib/python2.7/site-packages<br><br>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.<span class="HOEnZb"><font color="#888888"><br>

<br>Britton<br><br></font></span><div class="gmail_quote"><div><div class="h5">On Sun, Nov 4, 2012 at 3:52 PM, Yuan Li <span dir="ltr"><<a href="mailto:yuan@astro.columbia.edu" target="_blank">yuan@astro.columbia.edu</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi all,<br>
<br>
I am having some trouble running yt on Ranger, and I am confused<br>
because a couple of other people load the same modules and they can<br>
run yt without any problem.<br>
<br>
Right now, I can only run yt after I activate it (source<br>
~/source/yt-x86_64/bin/activate). If I do not activate yt, and I try<br>
to import yt in python (I use the one that came with yt):<br>
from yt.mods import *<br>
<br>
I get this error:<br>
ImportError: libpng15.so.15: cannot open shared object file: No such<br>
file or directory<br>
<br>
The module I load before running yt is this:<br>
module swap intel gcc/4.4.3<br>
which inactivates these modules:<br>
Inactive Modules:<br>
  1) mvapich-devel     2) acml     3) hdf5<br>
<br>
<br>
In my .bashrc file, I have:<br>
export PATH=$PATH:/share/home/01688/yuanli/source/yt-x86_64/bin<br>
export PATH=$PATH:/share/home/01688/yuanli/source/yt-x86_64/lib/python2.7/site-packages<br>
<br>
<br>
Hope there is an easy fix.<br>
<br>
Thank you!<br>
Yuan<br></div></div><div class="im">
_______________________________________________<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></blockquote></div><br>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">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></blockquote></div><br></div>