Mac installation broken when proceeding according to instructions
vilim opened this issue · 0 comments
vilim commented
The install instructions result in a module which can not be imported, failing with an error:
ImportError: dlopen(/usr/local/lib/python3.5/site-packages/pyklb.cpython-35m-darwin.so, 2): Library not loaded: /Users/clackn/src/keller-lab-block-filetype/build/libklb.dylib
Referenced from: /usr/local/lib/python3.5/site-packages/pyklb.cpython-35m-darwin.so
Reason: image not found
The error can be fixed by using the mac install_name_tool -change command to redirect the reference to the actual location of the lib file, but I think the problem has to be fixed somewhere else in a more permanent fashion.
The fix:
install name tool -change /Users/clackn/src/keller-lab-block-filetype/build/libklb.dylib [location of the downloaded .dylib] [the path to the .so file in site-packages]