Poetry Fails to Install/Update more-itertools on macOS
まだ誰も着手していません。
評価
調査の方向性
まず、Python 3.13.1、Homebrew Poetry 2.0.1、および poetry self add poetry-plugin-shell を使って、報告された macOS Apple Silicon での再現を実行します。self-add による more-itertools の更新を追跡し、インストール済みパッケージの状態と試行されたアンインストールを比較します。コマンドがインストール済みパッケージと存在しないパッケージの両方を、報告された失敗なしに処理できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When running poetry self add poetry-plugin-shell, Poetry attempts to update more-itertools (from 10.5.0 -> 10.6.0), but fails with the error:
Command '['/opt/homebrew/Cellar/poetry/2.0.1/libexec/bin/python',
'/opt/homebrew/Cellar/poetry/2.0.1/libexec/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-24.3.1-py3-none-any.whl/pip',
'uninstall', 'more-itertools', '-y']' returned non-zero exit status 1.
The error indicates that more-itertools is not installed, yet Poetry still tries to uninstall it, leading to a failure.
Expected Behavior
Poetry should correctly detect whether more-itertools is installed and handle the update properly. If it’s not installed, it should install it rather than attempting an uninstall.
Environment Details
- OS: macOS (Apple Silicon)
- Python Version: 3.13.1 (Installed via Homebrew)
- Poetry Version: 2.0.1
- Package Manager: Homebrew
- Virtualenv: Poetry-managed
Steps to Reproduce
brew install [email protected]
curl -sSL https://install.python-poetry.org | python3 -
poetry self add poetry-plugin-shell
Suggested Fix
- Poetry should check if a package is installed before attempting to uninstall it.
- Ensure Poetry respects system-installed packages and does not conflict with Homebrew-managed dependencies.
- 主要言語
- Python
- スター
- 141
- フォーク
- 10
- 平均マージ
- 59分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python-poetry/poetry-plugin-shell のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
python-poetry/poetry-plugin-shell#43 · コメント 1 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
python-poetry/poetry-plugin-shell#42 · コメント 4 件 · リアクション 15 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
python-poetry/poetry-plugin-shell#40 · コメント 4 件 · リアクション 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
python-poetry/poetry-plugin-shell#34 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
python-poetry/poetry-plugin-shell#30 · リアクション 1 件 ·
python-poetry/poetry-plugin-shell の issue をすべて見る
似ている issue
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
workflow: a tick's dispatch counts as 'only this step', and no review self-grants a round unattendedオープンworkflow
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
kristofdegrave/homeassistant-smart-charging#1505 ·
メンテナーはふだん 1 日以内に返信
-
metadata submission
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
canonical/content-cache-operator#163 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[submission]オープンsubmission
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
leanprover/lean-eval-submissions#1852 ·
メンテナーはふだん 1 日以内に返信