Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Cannot install poetry shell in latest brew poetry

Abierto
#42 4 comentarios 15 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python, shell
Área
cli

Línea de trabajo

Reproduce la configuración de Homebrew Poetry 2.1.1 y ejecuta poetry self add poetry-plugin-shell; después, inspecciona poetry/utils/env/base_env.py en la ruta _run indicada y el error de desinstalación de pip. Se considera terminado cuando el plugin se instala correctamente sin fallar al reemplazar el paquete idna instalado por brew.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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:

  1. 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`).
  1. 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

Lenguaje dominante
Python
Estrellas
141
Forks
10
Merge medio
59 min
PR fusionados (30 d)
3

Preparar el entorno

Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de python-poetry/poetry-plugin-shell

Todos los issues de python-poetry/poetry-plugin-shell

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.