[CIG-SHORT] Pylith problem.

Brad Aagaard baagaard at usgs.gov
Mon Oct 29 08:19:53 PDT 2007


Ivan-

In some cases we have found that users need to set the LD_LIBRARY_PATH and 
PYTHONPATH environment variables in addition to the PATH environment 
variable. This seems to be the case for you.

Assuming you are using the bash shell and you installed pylith in 
$HOME/pylith, these variables can be set as follows (add these to  
your .bashrc or .profile):

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:
${HOME}/pylith/pylith-1.0.1-linux-i686/lib
export PYTHONPATH=${PYTHONPATH}:
${HOME}/pylith/pylith-1.0.1-linux-i686/lib/python2.5/site-packages

Note: My email program put line breaks after the ":", which should not be 
there in the .bashrc or .profile.

Brad


On Sunday 28 October 2007, Ivan Zevallos Abarca wrote:
> Hello,
> I am a seismologist working at OVSICORI (Costa Rica). My interest research
> area is lithospheric stresses; now I am triyng to get a theoretic model for
> stress field on Costa Rica-Panama microplate.
> I have installed Pylith (binary file) in mi PC (LInux; slackware 12.0), but
> it doesnt run:
> this is the error message,
>
> ivan at sismoz:~/stress/model3d/pylith-1.0.1-linux-i686/bin> ./pylith
> Traceback (most recent call last):
>   File "./pylith", line 31, in <module>
>     from pylith.PyLithApp import PyLithApp
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/PyLithApp.py", line 20, in <module>
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/PyLithApp.py", line 27, in PyLithApp
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/PyLithApp.py", line 50, in Inventory
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/problems/TimeDependent.py", line 20, in <module>
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/problems/Problem.py", line 22, in <module>
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/problems/Problem.py", line 31, in Problem
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/problems/Problem.py", line 51, in Inventory
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/materials/Homogeneous.py", line 22, in <module>
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/materials/Homogeneous.py", line 31, in Homogeneous
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/materials/Homogeneous.py", line 47, in Inventory
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/materials/ElasticIsotropic3D.py", line 19, in <module>
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/materials/ElasticMaterial.py", line 20, in <module>
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/materials/Material.py", line 30, in <module>
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/materials/Material.py", line 43, in Material
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/pylith/materials/Material.py", line 67, in Inventory
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/spatialdata/spatialdb/SimpleDB.py", line 22, in <module>
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/spatialdata/spatialdb/SimpleDB.py", line 31, in SimpleDB
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/spatialdata/spatialdb/SimpleDB.py", line 51, in Inventory
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/spatialdata/spatialdb/SimpleIOAscii.py", line 21, in <module>
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/numpy/__init__.py", line 43, in <module>
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/numpy/linalg/__init__.py", line 4, in <module>
>
> File
> "/home/buildbot/install/x86_linux_single_nosched_binbot/lib/python2.5/site-
>packages/numpy/linalg/linalg.py", line 25, in <module>
> ImportError: liblapack.so.2: cannot open shared object file: No such file
> or directory
>
> Do you have some idea to solve this trouble??.
>
> ((I tried another way, to compile from sources, but has a lot of
> dependencies and failure every times))
>
> Ivan Zevallos A.
> Seismologist
> OVSIOCORI - UNA
> Costa Rica
> telf. 5624010
>
>
>
> --
>
> _______________________________________________
> CIG-SHORT mailing list
> CIG-SHORT at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short




More information about the CIG-SHORT mailing list