Cannot install poetry shell in latest brew poetry
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Tái hiện thiết lập Homebrew Poetry 2.1.1 và chạy poetry self add poetry-plugin-shell, sau đó kiểm tra poetry/utils/env/base_env.py tại đường dẫn _run được báo cáo và lỗi gỡ cài đặt của pip. Được xem là hoàn tất khi plugin cài đặt thành công mà không bị lỗi trong quá trình thay thế gói idna được brew cài đặt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
As I can see poetry arrives with its own python(not sure about that, but path in error suggest, that is the case) with incompatible set of libraries for some reason
How to reproduce:
- Install latest poetry via brew:
brew install poetry
==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Downloading https://formulae.brew.sh/api/cask.jws.json
==> Downloading https://ghcr.io/v2/homebrew/core/poetry/manifests/2.1.1
Already downloaded: /Users/keramblock/Library/Caches/Homebrew/downloads/018b2611a6610c5f611e20d5b9f5b630d9184d7cea0cd87592b31232a197639c--poetry-2.1.1.bottle_manifest.json
==> Fetching poetry
==> Downloading https://ghcr.io/v2/homebrew/core/poetry/blobs/sha256:76f0d3cfbe72bf708b1850e114b636e08adf1d25ea6012a435ac3732b0fe557d
Already downloaded: /Users/keramblock/Library/Caches/Homebrew/downloads/52239768717780f3cfa3f16b57a77b4334619b3c0f5448ce34554a8778ff5791--poetry--2.1.1.arm64_sequoia.bottle.tar.gz
==> Pouring poetry--2.1.1.arm64_sequoia.bottle.tar.gz
==> Caveats
zsh completions have been installed to:
/opt/homebrew/share/zsh/site-functions
==> Summary
🍺 /opt/homebrew/Cellar/poetry/2.1.1: 1,472 files, 18.8MB
==> Running `brew cleanup poetry`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
- Try to install shell plugin:
poetry self add poetry-plugin-shell
Using version ^1.0.1 for poetry-plugin-shell
Updating dependencies
Resolving dependencies... (0.2s)
Package operations: 3 installs, 24 updates, 0 removals
- Downgrading certifi (2025.1.31 -> 2024.2.2)
- Downgrading idna (3.10 -> 3.7): Failed
CalledProcessError
Command '['/opt/homebrew/Cellar/poetry/2.1.1/libexec/bin/python', '/opt/homebrew/Cellar/poetry/2.1.1/libexec/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-25.0.1-py3-none-any.whl/pip', 'uninstall', 'idna', '-y']' returned non-zero exit status 1.
at /opt/homebrew/Cellar/[email protected]/3.13.2/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py:579 in run
575│ # We don't call process.wait() as .__exit__ does that for us.
576│ raise
577│ retcode = process.poll()
578│ if check and retcode:
→ 579│ raise CalledProcessError(retcode, process.args,
580│ output=stdout, stderr=stderr)
581│ return CompletedProcess(process.args, retcode, stdout, stderr)
582│
583│
The following error occurred when trying to handle this error:
EnvCommandError
Command ['/opt/homebrew/Cellar/poetry/2.1.1/libexec/bin/python', '/opt/homebrew/Cellar/poetry/2.1.1/libexec/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-25.0.1-py3-none-any.whl/pip', 'uninstall', 'idna', '-y'] errored with the following return code 1
Output:
Found existing installation: idna 3.10
error: uninstall-no-record-file
× Cannot uninstall idna 3.10
╰─> The package's contents are unknown: no RECORD file was found for idna.
hint: The package was installed by brew. You should check if it can uninstall the package.
at /opt/homebrew/Cellar/poetry/2.1.1/libexec/lib/python3.13/site-packages/poetry/utils/env/base_env.py:434 in _run
430│ output = subprocess.check_output(
431│ cmd, stderr=stderr, env=env, text=True, encoding=encoding, **kwargs
432│ )
433│ except CalledProcessError as e:
→ 434│ raise EnvCommandError(e)
435│
436│ return output
437│
438│ def execute(self, bin: str, *args: str, **kwargs: Any) -> int:
Cannot install idna.
Expected result:
poetry shell plugin is installed
Actual result:
Shell tries to downgrade idna library and fails
- 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 38/100
python-poetry/poetry-plugin-shell#40 · 4 bình luận · 2 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
python-poetry/poetry-plugin-shell#37 · 3 bình luận ·
-
Độ 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ự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
PedestrianDynamics/pyFDS-Evac#343 ·
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 88/100
theskumar/python-dotenv#708 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Docs Timedelta
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pandas-dev/pandas#69919 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
API documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
zephyrproject-rtos/west#1009 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày