8000 cannot import pyhash from python35 · Issue #18 · flier/pyfasthash · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
cannot import pyhash from python35 #18
Closed
@hvnsweeting

Description

@hvnsweeting
python
Python 3.5.2 (default, Nov 17 2016, 17:05:23) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyhash
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/hvn/py35env/lib/python3.5/site-packages/pyhash.py", line 7, in <module>
    import _pyhash
ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0: undefined symbol: PyClass_Type
$ pip freeze | grep -i pyhash
pyhash==0.8.1

$ dpkg -l 'libboost-all-*' | grep ^ii
ii  libboost-all-dev 1.58.0.1ubuntu1 amd64        Boost C++ Libraries development files (ALL) (default version)

$ ls /usr/lib/x86_64-linux-gnu/libboost_python*/usr/lib/x86_64-linux-gnu/libboost_python.a
/usr/lib/x86_64-linux-gnu/libboost_python-py27.a
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so
/usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0
/usr/lib/x86_64-linux-gnu/libboost_python-py35.a
/usr/lib/x86_64-linux-gnu/libboost_python-py35.so
/usr/lib/x86_64-linux-gnu/libboost_python-py35.so.1.58.0
/usr/lib/x86_64-linux-gnu/libboost_python.so


$ lsb_release -d
Description:	Ubuntu 16.04.2 LTS

Though, it works okay on python 2 virtualenv

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0