Install of 'extras' fails on Mac OS
Installation of current FSLeyes went fine on my Mac (OS 10.12.6) in my own anaconda 3.5 environment.
However, when I tried pip install fsleyes[extras]
I get this error
Using cached Rtree-0.8.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/5v/rkpwb5197k96cjhjtv4tg52c0000gr/T/pip-build-f_i_1rdd/rtree/setup.py", line 4, in <module>
import rtree
File "/private/var/folders/5v/rkpwb5197k96cjhjtv4tg52c0000gr/T/pip-build-f_i_1rdd/rtree/rtree/__init__.py", line 1, in <module>
from .index import Rtree
File "/private/var/folders/5v/rkpwb5197k96cjhjtv4tg52c0000gr/T/pip-build-f_i_1rdd/rtree/rtree/index.py", line 6, in <module>
from . import core
File "/private/var/folders/5v/rkpwb5197k96cjhjtv4tg52c0000gr/T/pip-build-f_i_1rdd/rtree/rtree/core.py", line 109, in <module>
rt = ctypes.CDLL(lib_name)
File "/Users/nichols/anaconda2/envs/py35/lib/python3.5/ctypes/__init__.py", line 347, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libspatialindex_c.dylib, 6): image not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/5v/rkpwb5197k96cjhjtv4tg52c0000gr/T/pip-build-f_i_1rdd/rtree/
I couldn't find libspatialindex_c.dylib on my computer so, for good measure I installed spatialindex
(I use mac ports), and now I have:
/opt/local/lib/libspatialindex.4.dylib
/opt/local/lib/libspatialindex.a
/opt/local/lib/libspatialindex.dylib
/opt/local/lib/libspatialindex_c.4.dylib
/opt/local/lib/libspatialindex_c.a
/opt/local/lib/libspatialindex_c.dylib
but I still get the same error.
I had previously had a DYLD_LIBRARY_PATH
variable set, but I unset it and I still get the same error.
Now setting DYLD_LIBRARY_PATH
to /opt/local/lib
, pip install fsleyes[extras]
finishes without error.
Was this the right thing to do?