Poetry Fails to Install/Update more-itertools on macOS
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
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của python-poetry/poetry-plugin-shell
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
python-poetry/poetry-plugin-shell#43 · 1 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
python-poetry/poetry-plugin-shell#42 · 4 bình luận · 15 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
python-poetry/poetry-plugin-shell#40 · 4 bình luận · 2 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
python-poetry/poetry-plugin-shell#34 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
python-poetry/poetry-plugin-shell#30 · 1 reaction ·
Tất cả issue của python-poetry/poetry-plugin-shell
Issue tương tự
-
Claiming namespace `apoint`Đang mởnamespace operations
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
EclipseFdn/open-vsx.org#13573 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
collective/icalendar#1854 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
rancher/rancher-ai-agent#412 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
TUDelftGeodesy/DePSI#134 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
HenriquesLab/rxiv-maker#335 ·