poetry self add poetry-plugin-export fails
まだ誰も着手していません。
評価
調査の方向性
pipx と poetry self add コマンドを再現し、その後、poetry/utils/env/base_env.py に示されている失敗パスと、virtualenv に組み込まれた pip wheel の欠落しているパスから調査を始めます。依存関係の更新中における Poetry 2.4.1 と poetry-plugin-export 1.10.0 の環境セットアップを比較します。完了条件は、欠落している wheel に関するエラーなしでプラグインが正常にインストールされることです。
索引モデルが issue の本文から書いたものです。
説明
Hi, I'm using this plugin within a CI script, that recently started to fail.
The commands are
python -m pip install --user pipx
python -m pipx ensurepath
source ~/.bashrc
pipx install poetry==2.4.1
poetry self add poetry-plugin-export
The last line fails with
Using version ^1.10.0 for poetry-plugin-export
Updating dependencies
Resolving dependencies...
Package operations: 1 install, 9 updates, 0 removals
- Downgrading certifi (2026.7.22 -> 2026.6.17)
- Downgrading filelock (3.32.0 -> 3.29.7)
- Downgrading platformdirs (4.11.0 -> 4.10.0)
- Downgrading python-discovery (1.5.0 -> 1.4.4)
- Downgrading pbs-installer (2026.7.28 -> 2026.6.10)
- Downgrading dulwich (1.2.12 -> 1.2.10)
- Downgrading fastjsonschema (2.22.1 -> 2.21.2)
- Downgrading tomlkit (0.15.1 -> 0.15.0)
- Downgrading virtualenv (21.7.0 -> 21.6.1)
CalledProcessError
Command '['/root/.local/share/pipx/venvs/poetry/bin/python', '/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip', 'uninstall', 'dulwich', '-y']' returned non-zero exit status 2.
at /usr/local/lib/python3.13/subprocess.py:577 in run
573│ # We don't call process.wait() as .__exit__ does that for us.
574│ raise
575│ retcode = process.poll()
576│ if check and retcode:
→ 577│ raise CalledProcessError(retcode, process.args,
578│ output=stdout, stderr=stderr)
579│ return CompletedProcess(process.args, retcode, stdout, stderr)
580│
581│
The following error occurred when trying to handle this error:
EnvCommandError
Command ['/root/.local/share/pipx/venvs/poetry/bin/python', '/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip', 'uninstall', 'dulwich', '-y'] errored with the following return code 2
Output:
ERROR: Exception:
Traceback (most recent call last):
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/cli/base_command.py", line 109, in _run_wrapper
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/cli/base_command.py", line 102, in _inner_run
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/commands/uninstall.py", line 65, in run
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/cli/index_command.py", line 80, in get_default_session
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/cli/index_command.py", line 93, in _build_session
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/network/session.py", line 30, in <module>
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_vendor/cachecontrol/__init__.py", line 12, in <module>
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_vendor/cachecontrol/adapter.py", line 14, in <module>
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_vendor/cachecontrol/controller.py", line 22, in <module>
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_vendor/cachecontrol/serialize.py", line 9, in <module>
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_vendor/msgpack/__init__.py", line 5, in <module>
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
File "<frozen zipimport>", line 137, in get_code
File "<frozen zipimport>", line 783, in _get_module_code
File "<frozen zipimport>", line 617, in _get_data
FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl'
at ~/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/poetry/utils/env/base_env.py:453 in _run
449│ output = subprocess.check_output(
450│ cmd, stderr=stderr, env=env, text=True, encoding="locale", **kwargs
451│ )
452│ except CalledProcessError as e:
→ 453│ raise EnvCommandError(e)
454│
455│ return output
456│
457│ def execute(self, bin: str, *args: str, **kwargs: Any) -> int:
Cannot install dulwich.
CalledProcessError
Command '['/root/.local/share/pipx/venvs/poetry/bin/python', '/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip', 'uninstall', 'pbs-installer', '-y']' returned non-zero exit status 2.
at /usr/local/lib/python3.13/subprocess.py:577 in run
573│ # We don't call process.wait() as .__exit__ does that for us.
574│ raise
575│ retcode = process.poll()
576│ if check and retcode:
→ 577│ raise CalledProcessError(retcode, process.args,
578│ output=stdout, stderr=stderr)
579│ return CompletedProcess(process.args, retcode, stdout, stderr)
580│
581│
The following error occurred when trying to handle this error:
EnvCommandError
Command ['/root/.local/share/pipx/venvs/poetry/bin/python', '/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip', 'uninstall', 'pbs-installer', '-y'] errored with the following return code 2
Output:
ERROR: Exception:
Traceback (most recent call last):
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/cli/base_command.py", line 109, in _run_wrapper
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/cli/base_command.py", line 102, in _inner_run
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/commands/uninstall.py", line 65, in run
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/cli/index_command.py", line 80, in get_default_session
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/cli/index_command.py", line 93, in _build_session
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_internal/network/session.py", line 30, in <module>
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_vendor/cachecontrol/__init__.py", line 12, in <module>
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_vendor/cachecontrol/adapter.py", line 14, in <module>
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_vendor/cachecontrol/controller.py", line 22, in <module>
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_vendor/cachecontrol/serialize.py", line 9, in <module>
File "/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl/pip/_vendor/msgpack/__init__.py", line 5, in <module>
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 1022, in exec_module
File "<frozen zipimport>", line 137, in get_code
File "<frozen zipimport>", line 783, in _get_module_code
File "<frozen zipimport>", line 617, in _get_data
FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-26.1.2-py3-none-any.whl'
at ~/.local/share/pipx/venvs/poetry/lib/python3.13/site-packages/poetry/utils/env/base_env.py:453 in _run
449│ output = subprocess.check_output(
450│ cmd, stderr=stderr, env=env, text=True, encoding="locale", **kwargs
451│ )
452│ except CalledProcessError as e:
→ 453│ raise EnvCommandError(e)
454│
455│ return output
456│
457│ def execute(self, bin: str, *args: str, **kwargs: Any) -> int:
Cannot install pbs-installer.
- 主要言語
- Python
- スター
- 336
- フォーク
- 59
- 平均マージ
- 10分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python-poetry/poetry-plugin-export のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
-
Does not installオープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
python-poetry/poetry-plugin-export#341 · コメント 5 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
python-poetry/poetry-plugin-export#340 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 52/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
python-poetry/poetry-plugin-export#334 · コメント 9 件 · リアクション 1 件 ·
python-poetry/poetry-plugin-export の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/markitdown#2820 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
yt-project/yt#5624 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NousResearch/hermes-agent#148376 ·
メンテナーはふだん 1 日以内に返信