twmht / python-rocksdb

Python bindings for RocksDB
BSD 3-Clause "New" or "Revised" License
274 stars 89 forks source link

Import Error - undefined symbol: _ZN7rocksdb11NewLRUCacheEmibd #41

Closed SuBPaR42 closed 5 years ago

SuBPaR42 commented 5 years ago

Debian 9 with Python 3.7.2 built from source. Application I use is suggested to update to python3.7 so trying to get rocksdb (python-rocksdb) working. In 3.6 was using pyrocksdb without issue.

Subject line describes the error

ImportError: /usr/local/lib/python3.7/site-packages/rocksdb/_rocksdb.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN7rocksdb11NewLRUCacheEmibd

twmht commented 5 years ago

@SuBPaR42

Did you use virtualenv or pyenv?

SuBPaR42 commented 5 years ago

@twmht - I used neither but will try again with your suggestion and probably use virtualenv

I followed this (while using 3.7 vs. 3.6) - https://github.com/twmht/python-rocksdb/issues/15#issuecomment-346937164

SuBPaR42 commented 5 years ago

Built in virtualenv (manually selected python3.7 with the --python switch) and then also used python3.7 -m pip to do the install from git (have multiple python versions - debian still using python2 and 3.5).

Same error...