Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Build failure due to setuptools in pyproject.toml

オープン
#47 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
build-system

調査の方向性

まず pyproject.toml を調査し、issue に示されている pip と Python のバージョンを使って、報告された source-distribution の build を再現します。setuptools の要件をリンクされている setuptools の issue と比較し、パッケージが build 依存関係をインストールして、報告された ModuleNotFoundError が発生せずに build を完了できることを確認します。

索引モデルが issue の本文から書いたものです。

説明

bug

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.
主要言語
Python
スター
83
フォーク
29
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pytest-dev/pytest-forked のほかの issue

pytest-dev/pytest-forked の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。