Failed building wheel for http-parser | http_parser/parser.c:4:10: fatal error: Python.h: No such file or directory
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 30/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Domaine
- build-system
Piste de recherche
Reproduisez la commande signalée pip install git+https://github.com/benoitc/http-parser dans l’environnement Python 2.7 présenté. Commencez par http_parser/parser.c et la commande de build de l’extension journalisée, puis suivez la configuration de build du paquetage ; le travail est terminé lorsque le wheel se construit sans l’échec de compilation Python.h signalé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- C
- Étoiles
- 345
- Forks
- 93
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de benoitc/http-parser
-
Python 3.12 installation failsPeut-être pris @s-t-e-v-e-n-k l’a pris il y a 1039 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 38/100
benoitc/http-parser#99 · 1 commentaire · 6 réactions ·
-
Support for python 3.11Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
benoitc/http-parser#98 · 1 commentaire · 2 réactions ·
-
Access to Trailer fieldsOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 50/100
benoitc/http-parser#96 ·
-
Build fails on python3.11Peut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 45/100
benoitc/http-parser#94 · 1 réaction ·
-
New release - wheels?Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
benoitc/http-parser#82 · 2 commentaires · 1 réaction ·
Toutes les issues de benoitc/http-parser
Issues similaires
-
`table_create()` crashes when an `hccalloc()` for the option table failsPeut-être pris @marinelay l’a pris aujourd’hui. Ouvertetype: bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
bug severity: low
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
AlessandroSangiuliano/Uros#950 ·
-
ESP32
Difficulté 1/5 Moins d'une heure Accessibilité débutants 84/100
-
Difficulté 1/5 1-3 heures Accessibilité débutants 82/100
HandBrake/HandBrake#8266 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Disable touch control settingOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
saschb2b/Mega-Man-Battle-Network-Cyberworld-Endless#568 ·
Les mainteneurs répondent en général sous 1 jour