On a Mac using jigsawpy via anaconda, I encountered this error:
>>> import jigsawpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/mhoffman/anaconda/envs/compass_py3.7/lib/python3.7/site-packages/jigsawpy/__init__.py", line 64, in <module>
from jigsawpy import jigsaw, libsaw
File "/Users/mhoffman/anaconda/envs/compass_py3.7/lib/python3.7/site-packages/jigsawpy/libsaw.py", line 68, in <module>
jlib = ct.cdll.LoadLibrary(str(jlibname))
File "/Users/mhoffman/anaconda/envs/compass_py3.7/lib/python3.7/ctypes/__init__.py", line 434, in LoadLibrary
return self._dlltype(name)
File "/Users/mhoffman/anaconda/envs/compass_py3.7/lib/python3.7/ctypes/__init__.py", line 356, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libjigsaw.so, 6): image not found
I traced this to the difference in library file extension used by Macs (.dylib) vs Linux (.so) platforms. I was able to fix the problem by making the following patch to differentiate the two platforms. (The current test of os.name evaluates to 'posix' for both systems.)
On a Mac using jigsawpy via anaconda, I encountered this error:
I traced this to the difference in library file extension used by Macs (.dylib) vs Linux (.so) platforms. I was able to fix the problem by making the following patch to differentiate the two platforms. (The current test of
os.name
evaluates to 'posix' for both systems.)