kandi X-RAY | python-rocksdb Summary
kandi X-RAY | python-rocksdb Summary
python-rocksdb
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Merge an existing value .
- Name of this index .
python-rocksdb Key Features
python-rocksdb Examples and Code Snippets
Community Discussions
Trending Discussions on python-rocksdb
QUESTION
I'm trying to run Python Faust from Docker.
Based on this documentation: https://faust.readthedocs.io/en/latest/userguide/installation.html
I created a simple Docker file:
...ANSWER
Answered 2021-Dec-27 at 23:37Read the error message, where it is clearly stated you are missing a header file:
fatal error: rocksdb/slice.h: No such file or directory 705 | #include "rocksdb/slice.h" | ^~~~~~~~~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1
Accordingly, you'll need to build and install RocksDB. This is separate from the installation of faust[rocksdb]
with pip. That simply installs python-rocksdb
, the Python interface to the underlying libraries.
There is even a (third-party) RocksDB docker image based on Python 3.7 Slim.
You could use that directly or take some tricks from the Dockerfile for that image.
QUESTION
ANSWER
Answered 2021-Sep-10 at 10:38Sorted!
QUESTION
[2021-06-18 17:52:53,711: ERROR]: [^Worker]: Error: ImproperlyConfigured('RocksDB bindings not installed? pip install python-rocksdb',)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/faust/stores/rocksdb.py", line 159, in __init__
import rocksdb as _rocksdb # noqa: F401
File "/usr/local/lib/python3.6/site-packages/rocksdb/__init__.py", line 1, in
from ._rocksdb import *
ImportError: /usr/local/lib/python3.6/site-packages/rocksdb/_rocksdb.cpython-36m-x86_64-linux-gnu.so: undefined symbol: ZSTD_versionNumber
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/mode/worker.py", line 264, in execute_from_commandline
self.loop.run_until_complete(self._starting_fut)
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 488, in run_until_complete
return future.result()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 719, in start
await self._default_start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 726, in _default_start
await self._actually_start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 750, in _actually_start
await child.maybe_start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 778, in maybe_start
await self.start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 719, in start
await self._default_start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 726, in _default_start
await self._actually_start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 750, in _actually_start
await child.maybe_start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 778, in maybe_start
await self.start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 719, in start
await self._default_start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 726, in _default_start
await self._actually_start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 743, in _actually_start
await self.on_start()
File "/usr/local/lib/python3.6/site-packages/faust/tables/manager.py", line 130, in on_start
await self._update_channels()
File "/usr/local/lib/python3.6/site-packages/faust/tables/manager.py", line 140, in _update_channels
await table.maybe_start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 778, in maybe_start
await self.start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 719, in start
await self._default_start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 726, in _default_start
await self._actually_start()
File "/usr/local/lib/python3.6/site-packages/mode/services.py", line 743, in _actually_start
await self.on_start()
File "/usr/local/lib/python3.6/site-packages/faust/tables/base.py", line 195, in on_start
await self.add_runtime_dependency(self.data)
File "/usr/local/lib/python3.6/site-packages/faust/tables/base.py", line 190, in data
self._data = self._new_store()
File "/usr/local/lib/python3.6/site-packages/faust/tables/base.py", line 171, in _new_store
return self._new_store_by_url(self._store or self.app.conf.store)
File "/usr/local/lib/python3.6/site-packages/faust/tables/base.py", line 182, in _new_store_by_url
options=self.options,
File "/usr/local/lib/python3.6/site-packages/faust/stores/rocksdb.py", line 161, in __init__
raise error from exc
faust.exceptions.ImproperlyConfigured: RocksDB bindings not installed? pip install python-rocksdb
...ANSWER
Answered 2021-Jun-18 at 20:28Don't use the latest version of anything for automated builds, pin the version to the most recent, tested, working version. It looks like this project uses tags to denote release versions. You'll need to figure out the date of the last build, go to the repository, find the tag immediately preceding the date of the last working build and check it out before running make
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install python-rocksdb
You can use python-rocksdb like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page