Hi folks:
I have installed ISSM with Python wrappers locally on my MacOS. I have re-installed following a MacOS update. I installed with --enable-development
on. I am running the devpath.py
file like this:
import os
os.getenv('ISSM_DIR')
with open(os.getenv('ISSM_DIR')+'/src/m/dev/devpath.py') as f:
exec(f.read())
This allows me to successfully load/access some python modules. However, some modules that (as far as I can tell) rely on IssmConfig
are throwing errors. For example, when I run from issmversion import issmversion
, I get the following error:
Traceback (most recent call last):
File "/Users/lawrence.bird/Library/Python/3.9/lib/python/site-packages/IPython/core/interactiveshell.py", line 3550, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-3-7ef62d322e4f>", line 1, in <module>
from issmversion import issmversion
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/lawrence.bird/ISSM/src/m/dev/issmversion.py", line 1, in <module>
from IssmConfig import IssmConfig
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/lawrence.bird/ISSM/src/m/modules/IssmConfig.py", line 1, in <module>
from IssmConfig_python import IssmConfig_python
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ImportError: dlopen(/Users/lawrence.bird/ISSM/lib/IssmConfig_python.so, 0x0002): Library not loaded: /Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib
Referenced from: <893DECCB-49EC-380A-9385-426A669EA67B> /Users/lawrence.bird/ISSM/lib/IssmConfig_python.so
Reason: tried: '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib'), '/System/Volumes/Preboot/Cryptexes/OS/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib' (no such file), '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib'), '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.1.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib'), '/System/Volumes/Preboot/Cryptexes/OS/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.1.dylib' (no such file), '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib/libscalapack.2.2.1.dylib' (duplicate LC_RPATH '/Users/lawrence.bird/ISSM/externalpackages/petsc/install/lib')
I can load others, for example from processmesh import processmesh
without issue. Perhaps another @rpath
issue, but I'm not sure where best to start.
Any tips welcome -- Thanks!
Lawrence