Install on modern pip and setuptools is failing

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

@Rotzbua がすでに取り組んでいます。

2026年6月21日 から。

  • #248 @Rotzbua による — オープン

評価

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

調査の方向性

Reproduce the reported pip install --no-cache-dir extruct failure with current pip and setuptools, then inspect the jstyleson dependency and the linked upstream pull request. Confirm whether the dependency packaging change resolves the description-file error and verify that extruct installs successfully.

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

説明

Likely due to https://github.com/linjackson78/jstyleson/pull/8

% pip install --no-cache-dir extruct
Collecting extruct
  Downloading extruct-0.18.0-py2.py3-none-any.whl.metadata (36 kB)
Collecting lxml (from extruct)
  Downloading lxml-5.3.1-cp312-cp312-macosx_10_9_universal2.whl.metadata (3.7 kB)
Collecting lxml-html-clean (from extruct)
  Downloading lxml_html_clean-0.4.1-py3-none-any.whl.metadata (2.4 kB)
Collecting rdflib>=6.0.0 (from extruct)
  Downloading rdflib-7.1.3-py3-none-any.whl.metadata (11 kB)
Collecting pyrdfa3 (from extruct)
  Downloading pyRdfa3-3.6.4-py3-none-any.whl.metadata (3.4 kB)
Collecting mf2py (from extruct)
  Downloading mf2py-2.0.1-py3-none-any.whl.metadata (5.4 kB)
Collecting w3lib (from extruct)
  Downloading w3lib-2.3.1-py3-none-any.whl.metadata (2.3 kB)
Collecting html-text>=0.5.1 (from extruct)
  Downloading html_text-0.7.0-py3-none-any.whl.metadata (8.7 kB)
Collecting jstyleson (from extruct)
  Downloading jstyleson-0.0.2.tar.gz (2.0 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [31 lines of output]
      Traceback (most recent call last):
        File "venv-temp-2/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
        File "venv-temp-2/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "venv-temp-2/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/p5/2zz8z1ln21dfb6p_t367sfn40000gn/T/pip-build-env-qdd6f77k/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/p5/2zz8z1ln21dfb6p_t367sfn40000gn/T/pip-build-env-qdd6f77k/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/p5/2zz8z1ln21dfb6p_t367sfn40000gn/T/pip-build-env-qdd6f77k/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/private/var/folders/p5/2zz8z1ln21dfb6p_t367sfn40000gn/T/pip-build-env-qdd6f77k/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 3, in <module>
        File "/private/var/folders/p5/2zz8z1ln21dfb6p_t367sfn40000gn/T/pip-build-env-qdd6f77k/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 116, in setup
          _install_setup_requires(attrs)
        File "/private/var/folders/p5/2zz8z1ln21dfb6p_t367sfn40000gn/T/pip-build-env-qdd6f77k/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 87, in _install_setup_requires
          dist.parse_config_files(ignore_option_errors=True)
        File "/private/var/folders/p5/2zz8z1ln21dfb6p_t367sfn40000gn/T/pip-build-env-qdd6f77k/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 730, in parse_config_files
          self._parse_config_files(filenames=inifiles)
        File "/private/var/folders/p5/2zz8z1ln21dfb6p_t367sfn40000gn/T/pip-build-env-qdd6f77k/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 599, in _parse_config_files
          opt = self._enforce_underscore(opt, section)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/p5/2zz8z1ln21dfb6p_t367sfn40000gn/T/pip-build-env-qdd6f77k/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 629, in _enforce_underscore
          raise InvalidConfigError(
      setuptools.errors.InvalidConfigError: Invalid dash-separated key 'description-file' in 'metadata' (setup.cfg), please use the underscore name 'description_file' instead.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 25.0 -> 25.0.1
[notice] To update, run: pip install --upgrade pip
error: subprocess-exited-with-error
主要言語
Python
スター
986
フォーク
127
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

scrapinghub/extruct のほかの issue

scrapinghub/extruct の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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