Failed building wheel for http-parser | http_parser/parser.c:4:10: fatal error: Python.h: No such file or directory
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- build-system
Hướng nghiên cứu
Tái hiện lệnh được báo cáo pip install git+https://github.com/benoitc/http-parser trong môi trường Python 2.7 được hiển thị. Bắt đầu với http_parser/parser.c và lệnh build extension được ghi lại, sau đó lần theo cấu hình build của package; hoàn thành khi wheel build được mà không gặp lỗi biên dịch Python.h đã báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C
- Star
- 345
- Fork
- 93
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của benoitc/http-parser
-
Python 3.12 installation failsCó thể đã có người làm @s-t-e-v-e-n-k đã nhận 1039 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 38/100
benoitc/http-parser#99 · 1 bình luận · 6 reaction ·
-
Support for python 3.11Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
benoitc/http-parser#98 · 1 bình luận · 2 reaction ·
-
Access to Trailer fieldsĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
benoitc/http-parser#96 ·
-
Build fails on python3.11Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
benoitc/http-parser#94 · 1 reaction ·
-
New release - wheels?Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
benoitc/http-parser#82 · 2 bình luận · 1 reaction ·
Tất cả issue của benoitc/http-parser
Issue tương tự
-
`table_create()` crashes when an `hccalloc()` for the option table failsCó thể đã có người làm @marinelay đã nhận hôm nay. Đang mởtype: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AlessandroSangiuliano/Uros#950 ·
-
ESP32
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
HandBrake/HandBrake#8266 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Disable touch control settingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
saschb2b/Mega-Man-Battle-Network-Cyberworld-Endless#568 ·
Maintainer thường phản hồi trong vòng 1 ngày