twmht / python-rocksdb

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

AttributeError: module 'pyrocksdb' has no attribute 'DB' #49

Closed ebagjones closed 5 years ago

ebagjones commented 5 years ago

I've tried the installation 3 times - wiped/cleaned everything related to rocksdb and started from scratch each time, but still have the same result. This is using the instructions from here, on Ubuntu 18.04.1 LTS: https://github.com/twmht/python-rocksdb/tree/pybind11

After a successful installation into my Python 3.6.7 virtual environment, I get this when trying to follow through the example: `

import pyrocksdb db = pyrocksdb.DB() Traceback (most recent call last):

File "", line 1, in AttributeError: module 'pyrocksdb' has no attribute 'DB' `

I've also tried installing outside my virtual environment and with python2.7 - issues each time. Any guidance you can provide would be much appreciated.

twmht commented 5 years ago

@jefferyanderson

the fix is coming soon.

twmht commented 5 years ago

@jefferyanderson

I have updated the branch, and it should work now.

ebagjones commented 5 years ago

Perfect - that fixed it. Thanks for the super fast help!