Build failure due to setuptools in pyproject.toml
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python
- Lĩnh vực
- build-system
Hướng nghiên cứu
Bắt đầu bằng cách kiểm tra pyproject.toml và tái hiện quá trình build source-distribution đã được báo cáo bằng các phiên bản pip và Python được nêu trong issue. So sánh yêu cầu setuptools với issue setuptools được liên kết và xác minh rằng package có thể cài đặt các dependency build của mình và hoàn tất quá trình build mà không gặp ModuleNotFoundError đã được 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ả
It looks like https://github.com/pytest-dev/pytest-forked/blob/master/pyproject.toml is causing build failures due to setuptools ~= 41.4 (console output below). This has been seen in other packages as well. A possible solution is to get rid of the file, or at least the setuptools pin.
10:13:52 Collecting #pytest-forked
10:13:52 Downloading pytest-forked-1.3.0.tar.gz (9.8 kB)
10:13:52 Installing build dependencies: started
10:13:53 Installing build dependencies: finished with status 'error'
10:13:53 ERROR: Command errored out with exit status 1:
10:13:53 command: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hbrecn75/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i http://build.locusdev.net:10001/simple --extra-index-url https://pypi.python.org/simple --trusted-host build.locusdev.net -- 'setuptools ~= 41.4' 'setuptools_scm ~= 3.3' 'wheel ~= 0.33.6'
10:13:53 cwd: None
10:13:53 Complete output (20 lines):
10:13:53 Looking in indexes: http://build.locusdev.net:10001/simple, https://pypi.python.org/simple/, https://pypi.python.org/simple
10:13:53 Collecting setuptools~=41.4
10:13:53 Downloading setuptools-41.6.0.zip (852 kB)
10:13:53 ERROR: Command errored out with exit status 1:
10:13:53 command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-fobv7n3k/setuptools/setup.py'"'"'; __file__='"'"'/tmp/pip-install-fobv7n3k/setuptools/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-fobv7n3k/setuptools/pip-egg-info
10:13:53 cwd: /tmp/pip-install-fobv7n3k/setuptools/
10:13:53 Complete output (9 lines):
10:13:53 Traceback (most recent call last):
10:13:53 File "<string>", line 1, in <module>
10:13:53 File "/tmp/pip-install-fobv7n3k/setuptools/setuptools/__init__.py", line 6, in <module>
10:13:53 import distutils.core
10:13:53 File "/usr/local/lib/python3.7/site-packages/_distutils_hack/__init__.py", line 83, in create_module
10:13:53 return importlib.import_module('setuptools._distutils')
10:13:53 File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
10:13:53 return _bootstrap._gcd_import(name[level:], package, level)
10:13:53 ModuleNotFoundError: No module named 'setuptools._distutils'
10:13:53 ----------------------------------------
10:13:53 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
10:13:53 WARNING: You are using pip version 20.0.2; however, version 20.2.2 is available.
10:13:53 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
10:13:53 ----------------------------------------
10:13:53 ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-hbrecn75/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i http://build.locusdev.net:10001/simple --extra-index-url https://pypi.python.org/simple --trusted-host build.locusdev.net -- 'setuptools ~= 41.4' 'setuptools_scm ~= 3.3' 'wheel ~= 0.33.6' Check the logs for full command output.
10:13:53 WARNING: You are using pip version 20.0.2; however, version 20.2.2 is available.
10:13:53 You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
- Ngôn ngữ chính
- Python
- Star
- 84
- Fork
- 30
- 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 pytest-dev/pytest-forked
-
`ResourceWarning`/`PytestUnraisableExceptionWarning` with version 1.7.5Có thể đã có người làm @janmrow đã nhận 31 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pytest-dev/pytest-forked#106 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
pytest-dev/pytest-forked#84 ·
-
Fork per subpathĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
pytest-dev/pytest-forked#94 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
pytest-dev/pytest-forked#88 · 12 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
pytest-dev/pytest-forked#87 · 1 reaction ·
Tất cả issue của pytest-dev/pytest-forked
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
FavioVazquez/showtime#101 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rossant/awesome-math#199 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nautechsystems/nautilus_trader#5365 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Examples say cnxĐang mởdocumentation embedded
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày