Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
None
-
None
Description
I have locally-built python client that links against a locally-built libcouchbase that used to work against Yosemite, but is now busted in High Sierra.
Here's the error I get:
$ ./xattr.sh -h
|
Traceback (most recent call last):
|
File "../clients/xattr.py", line 3, in <module>
|
from couchbase.bucket import Bucket, SD
|
File "/Users/dfinlay/work1/couchbase-python-client/couchbase/__init__.py", line 28, in <module>
|
from couchbase.user_constants import *
|
File "/Users/dfinlay/work1/couchbase-python-client/couchbase/user_constants.py", line 21, in <module>
|
import couchbase._bootstrap
|
File "/Users/dfinlay/work1/couchbase-python-client/couchbase/_bootstrap.py", line 34, in <module>
|
import couchbase.exceptions as E
|
File "/Users/dfinlay/work1/couchbase-python-client/couchbase/exceptions.py", line 18, in <module>
|
import couchbase._libcouchbase as C
|
ImportError: dlopen(/Users/dfinlay/work1/couchbase-python-client/couchbase/_libcouchbase.so, 2): Library not loaded: @rpath/libcouchbase.2.dylib
|
Referenced from: /Users/dfinlay/work1/couchbase-python-client/couchbase/_libcouchbase.so
|
Reason: image not found
|
I guess the key bit is this: "Library not loaded: @rpath/libcouchbase.2.dylib".
My setup is as follows.
Step 1: build libcouchbase
cmake/configure --prefix /Users/dfinlay/work1/libcouchbase/install
|
make install
|
Step 2: build the python client
python setup.py build_ext --inplace --library-dir /Users/dfinlay/work1/libcouchbase/install/lib --include-dir /Users/dfinlay/work1/libcouchbase/install/include/
|
When I invoke my python scripts I set the LD_LIBRARY_PATH and the PYTHONPATH as follows:
export LD_LIBRARY_PATH=/Users/dfinlay/work1/libcouchbase/install/lib
|
export PYTHONPATH=/Users/dfinlay/work1/couchbase-python-client
|
Everything used to work great on Yosemite.
I don't expect someone to debug my setup for me but I would be interested if someone else has run into this kind of issue on High Sierra.