GithubHelp home page GithubHelp logo

sparkey-python's Issues

Segfaults with python3

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

add to pip

It would be great if this was part of pip

undefined symbol: sparkey_errstring

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.