
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

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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

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@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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Yuan, Glad to hear that worked for you. In most circumstances, you have to set these variables or run the script. If you're referring to kraken, for example, loading the yt module also sets those environment variables for you. Britton On Mon, Nov 5, 2012 at 5:17 PM, Yuan Li <bear0980@gmail.com> wrote:
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@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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (3)
-
Britton Smith
-
Yuan Li
-
Yuan Li