spotify / sparkey-python Goto Github PK
View Code? Open in Web Editor NEWPython bindings for the sparkey key value store
License: Apache License 2.0
Python bindings for the sparkey key value store
License: Apache License 2.0
Hi,
I'm having trouble importing the sparkey module with a fresh install. I think this is because ctypes cannot find the sparkey library?
$ pip install git+https://github.com/spotify/sparkey-python.git
$ python
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sparkey
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/dom/Code/sparkey/env/lib/python3.6/site-packages/sparkey/__init__.py", line 69, in <module>
_errstring = _format(libsparkey.sparkey_errstring, _str, ctypes.c_int)
File "/usr/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: python: undefined symbol: sparkey_errstring
It would be great if this was part of pip
Traceback (most recent call last):
File "t.py", line 7, in <module>
writer = sparkey.LogWriter(logfile)
File "/usr/local/lib/python3.6/dist-packages/sparkey/__init__.py", line 161, in __init__
compression_block_size)
File "/usr/local/lib/python3.6/dist-packages/sparkey/__init__.py", line 56, in wrapper
code = fn(*a, **kw)
ctypes.ArgumentError: argument 2: <class 'TypeError'>: wrong type
Segmentation fault
Python 3.6.3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.