I am trying to install a local version of dolfin because I do not have administrator privileges. I went through and install each required package, and finally installed Dolfin, but cannot import it. The error is
File "<stdin>", line 1, in <module>
File "/Users/southworth2/Documents/libs/lib/python2.7/site-packages/dolfin/__init__.py", line 16, in <module>
from . import cpp
File "/Users/southworth2/Documents/libs/lib/python2.7/site-packages/dolfin/cpp/__init__.py", line 44, in <module>
for module_name in _compiled_modules:
File "<string>", line 1, in <module>
File "/Users/southworth2/Documents/libs/lib/python2.7/site-packages/dolfin/cpp/common.py", line 32, in <module>
_common = swig_import_helper()
File "/Users/southworth2/Documents/libs/lib/python2.7/site-packages/dolfin/cpp/common.py", line 28, in swig_import_helper
_mod = imp.load_module('_common', fp, pathname, description)
ImportError: dlopen(/Users/southworth2/Documents/libs/lib/python2.7/site-packages/dolfin/cpp/_common.so, 2): Library not loaded: @rpath/libdolfin.1.5.dylib
Referenced from: /Users/southworth2/Documents/libs/lib/python2.7/site-packages/dolfin/cpp/_common.so
Reason: image not found
I did some googling and saw that others have experienced similar problems, but they were mostly on developer forums and the conversations were beyond my scope of understanding. I was careful to set my environment variables. I also stepped through the import process in pdb() and, as the message suggests, the process terminates when it tries to import /Users/ ... /dolfin/cpp/_common.so. I'm not really sure what that means though. Any help would be greatly appreciated.