python-hyper / python-hyper/brotlicffi
Symbol not found: _BrotliDecoderCreateInstance with Python 3.7.2 and fresh pip install
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 154
- Forks
- 34
- Ø Merge
- 1 T. 1 Std.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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).
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere den Importfehler mit der Python 3.7.2 virtualenv und den im Issue gezeigten Installationsbefehlen. Untersuche die an diesem Traceback beteiligten installierten Dateien brotli/init.py, brotli.py und _brotli.abi3.so; abgeschlossen ist die Aufgabe, wenn eine frische pip install brotli ohne den Fehler wegen des fehlenden Symbols importieren kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100