Hello,
I wanted to generate power-law viscoelastic material properties for my model. To test thing out I ran the example case by executing powerlaw_gendb.py inside the ~/PyLith/pylith-2.2.2-darwin-10.13.6/src/pylith-2.2.2/examples/3d/hex8/spatialdb/powerlaw directory but the following error appears:
Traceback (most recent call last):
File “/Users/Alpine/PyLith/pylith-2.2.2-darwin-10.13.6/bin/powerlaw_gendb.py”, line 32, in
class PowerLawApp(Application):
File “/Users/Alpine/PyLith/pylith-2.2.2-darwin-10.13.6/bin/powerlaw_gendb.py”, line 72, in PowerLawApp
from spatialdata.spatialdb.SimpleDB import SimpleDB
File “/Users/Alpine/PyLith/pylith-2.2.2-darwin-10.13.6/lib/python2.7/site-packages/spatialdata/spatialdb/SimpleDB.py”, line 23, in
from SpatialDBObj import SpatialDBObj
File “/Users/Alpine/PyLith/pylith-2.2.2-darwin-10.13.6/lib/python2.7/site-packages/spatialdata/spatialdb/SpatialDBObj.py”, line 24, in
from spatialdb import SpatialDB as ModuleSpatialDB
File “/Users/Alpine/PyLith/pylith-2.2.2-darwin-10.13.6/lib/python2.7/site-packages/spatialdata/spatialdb/spatialdb.py”, line 28, in
_spatialdb = swig_import_helper()
File “/Users/Alpine/PyLith/pylith-2.2.2-darwin-10.13.6/lib/python2.7/site-packages/spatialdata/spatialdb/spatialdb.py”, line 24, in swig_import_helper
_mod = imp.load_module(’_spatialdb’, fp, pathname, description)
ImportError: dlopen(/Users/Alpine/PyLith/pylith-2.2.2-darwin-10.13.6/lib/python2.7/site-packages/spatialdata/spatialdb/_spatialdbmodule.so, 2): Library not loaded: @executable_path/…/lib/libspatialdata.0.dylib
Referenced from: /Users/Alpine/PyLith/pylith-2.2.2-darwin-10.13.6/lib/python2.7/site-packages/spatialdata/spatialdb/_spatialdbmodule.so
Reason: unsafe use of @executable_path in /Users/Alpine/PyLith/pylith-2.2.2-darwin-10.13.6/lib/python2.7/site-packages/spatialdata/spatialdb/_spatialdbmodule.so with restricted binary
I installed pylith by simply doing “source setup.sh”. I wonder what causes this error and how can I resolve it?
Thanks in advance
Guo