Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Poetry Fails to Install/Update more-itertools on macOS

Đang mở
#37 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Bắt đầu bằng cách chạy việc tái hiện được báo cáo trên macOS Apple Silicon với Python 3.13.1, Homebrew Poetry 2.0.1 và poetry self add poetry-plugin-shell. Theo dõi quá trình self-add cập nhật more-itertools và so sánh trạng thái gói đã cài đặt với lần gỡ cài đặt được thực hiện; được xem là hoàn tất khi lệnh xử lý cả các gói đã cài đặt và các gói không tồn tại mà không gặp lỗi đã báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Python
Star
141
Fork
10
Merge trung bình
59 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của python-poetry/poetry-plugin-shell

Tất cả issue của python-poetry/poetry-plugin-shell

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.