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

Poetry Fails to Install/Update more-itertools on macOS

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

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

評価

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

調査の方向性

まず、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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

python-poetry/poetry-plugin-shell のほかの issue

python-poetry/poetry-plugin-shell の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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