Failed building wheel for http-parser | http_parser/parser.c:4:10: fatal error: Python.h: No such file or directory
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 30/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Ambito
- build-system
Direzione di ricerca
Riproduci il comando riportato pip install git+https://github.com/benoitc/http-parser nell’ambiente Python 2.7 mostrato. Inizia da http_parser/parser.c e dal comando di build dell’estensione registrato, quindi segui la configurazione di build del pacchetto; il lavoro è completato quando il wheel viene compilato senza l’errore di compilazione di Python.h riportato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Full log :
pip install git+https://github.com/benoitc/http-parser
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/benoitc/http-parser
Cloning https://github.com/benoitc/http-parser to /tmp/pip-req-build-ilQJuJ
Running command git clone -q https://github.com/benoitc/http-parser /tmp/pip-req-build-ilQJuJ
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Building wheels for collected packages: http-parser
Building wheel for http-parser (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 /usr/local/lib/python2.7/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmplnGbGj
cwd: /tmp/pip-req-build-ilQJuJ
Complete output (24 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/http_parser
copying http_parser/_socketio.py -> build/lib.linux-x86_64-2.7/http_parser
copying http_parser/pyparser.py -> build/lib.linux-x86_64-2.7/http_parser
copying http_parser/util.py -> build/lib.linux-x86_64-2.7/http_parser
copying http_parser/__init__.py -> build/lib.linux-x86_64-2.7/http_parser
copying http_parser/http.py -> build/lib.linux-x86_64-2.7/http_parser
copying http_parser/reader.py -> build/lib.linux-x86_64-2.7/http_parser
running build_ext
make: Nothing to be done for 'all'.
building 'http_parser.parser' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/http_parser
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-QDqKfA/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Iparser -I/usr/include/python2.7 -c http_parser/http_parser.c -o build/temp.linux-x86_64-2.7/http_parser/http_parser.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-QDqKfA/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Iparser -I/usr/include/python2.7 -c http_parser/parser.c -o build/temp.linux-x86_64-2.7/http_parser/parser.o
http_parser/parser.c:4:10: fatal error: Python.h: No such file or directory
4 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for http-parser
Failed to build http-parser
ERROR: Could not build wheels for http-parser which use PEP 517 and cannot be installed directly
- Lingua principale
- C
- Stelle
- 345
- Fork
- 93
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di benoitc/http-parser
-
Python 3.12 installation failsForse già presa @s-t-e-v-e-n-k l’ha presa 1039 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 38/100
benoitc/http-parser#99 · 1 commento · 6 reazioni ·
-
Support for python 3.11Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
benoitc/http-parser#98 · 1 commento · 2 reazioni ·
-
Access to Trailer fieldsAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
benoitc/http-parser#96 ·
-
Build fails on python3.11Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
benoitc/http-parser#94 · 1 reazione ·
-
New release - wheels?Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
benoitc/http-parser#82 · 2 commenti · 1 reazione ·
Tutte le issue di benoitc/http-parser
Issue simili
-
`table_create()` crashes when an `hccalloc()` for the option table failsForse già presa @marinelay l’ha presa oggi. Apertatype: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AlessandroSangiuliano/Uros#950 ·
-
ESP32
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 82/100
HandBrake/HandBrake#8266 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
saschb2b/Mega-Man-Battle-Network-Cyberworld-Endless#568 ·
I maintainer di solito rispondono entro 1 giorno