Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol not found: _BrotliDecoderCreateInstance with Python 3.7.2 and fresh pip install #146

Open
pirate opened this issue Feb 6, 2019 · 3 comments

Comments

@pirate
Copy link

pirate commented Feb 6, 2019

There seems to be something preventing brotlipy from working on my machine:

$ pip --version
pip 19.0.1
$ virtualenv -p $(which python3.7) venv
$ source venv/bin/activate
$ python --version
Python 3.7.2
$ pip install --no-deps --no-binary :all: --ignore-installed brotlipy
Collecting brotlipy
  Using cached https://files.pythonhosted.org/packages/d9/91/bc79b88590e4f662bd40a55a2b6beb0f15da4726732efec5aa5a3763d856/brotlipy-0.7.0.tar.gz
Skipping bdist_wheel for brotlipy, due to binaries being disabled for it.
Installing collected packages: brotlipy
  Running setup.py install for brotlipy ... done
Successfully installed brotlipy-0.7.0
$ python
>>> import brotli
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/test/venv/lib/python3.7/site-packages/brotli/__init__.py", line 3, in <module>
    from .brotli import (
  File "~/test/venv/lib/python3.7/site-packages/brotli/brotli.py", line 5, in <module>
    from ._brotli import ffi, lib
ImportError: dlopen(~/test/venv/lib/python3.7/site-packages/brotli/_brotli.abi3.so, 2): Symbol not found: _BrotliDecoderCreateInstance
  Referenced from: ~/test/venv/lib/python3.7/site-packages/brotli/_brotli.abi3.so
  Expected in: flat namespace
 in ~/test/venv/lib/python3.7/site-packages/brotli/_brotli.abi3.so

This also happens with just plain pip install brotlipy (without the --no-deps --no-binary :all: --ignore-installed options).

@kukat
Copy link

kukat commented Jun 25, 2019

same error

@pirate
Copy link
Author

pirate commented Jun 28, 2019

IIRC @ikreymer just ended up disabling brotli support in pywb when this error is encountered, so unfortunately I don't know of any workaround at the moment @kukat. Please post back if you do find a way to fix this!

@paucky
Copy link

paucky commented Jul 4, 2020

I use anaconda py3.6 / ubuntu
The finial solution
apt-get install python3-cffi-backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants