Failed building wheel for http-parser | http_parser/parser.c:4:10: fatal error: Python.h: No such file or directory
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 30/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 領域
- build-system
研究方向
在所示的 Python 2.7 環境中重現回報的 pip install git+https://github.com/benoitc/http-parser 指令。先從 http_parser/parser.c 和記錄的擴充功能建置指令開始,接著追蹤套件的建置設定;當 wheel 能在沒有回報的 Python.h 編譯失敗的情況下建置完成時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- C
- 星號
- 345
- 分支
- 93
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
benoitc/http-parser 的其他 Issue
-
Python 3.12 installation fails可能已有人在做 @s-t-e-v-e-n-k 於 1039 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 38/100
benoitc/http-parser#99 · 1 則留言 · 6 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 45/100
benoitc/http-parser#98 · 1 則留言 · 2 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 50/100
benoitc/http-parser#96 ·
-
Build fails on python3.11可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 2/5 1-3 小時 新手友好度 45/100
benoitc/http-parser#94 · 1 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 25/100
benoitc/http-parser#82 · 2 則留言 · 1 個 reaction ·
查看 benoitc/http-parser 的全部 Issue
相似的 Issue
-
`table_create()` crashes when an `hccalloc()` for the option table fails可能已有人在做 @marinelay 今天認領。 未關閉type: bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
bug severity: low
難度 2/5 1-3 小時 新手友好度 78/100
AlessandroSangiuliano/Uros#950 ·
-
ESP32
難度 1/5 1 小時以內 新手友好度 84/100
-
難度 1/5 1-3 小時 新手友好度 82/100
HandBrake/HandBrake#8266 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
saschb2b/Mega-Man-Battle-Network-Cyberworld-Endless#568 ·
維護者通常 1 天內回覆