python-poetry / python-poetry/poetry-plugin-shell

Duplicate of issue 42 for anyio dependency

Open
#43 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
141
Forks
10
Avg merge
59m
Merged PRs (30d)
3

Description

Duplicate of issue 42 for anyio dependency

$ poetry --version
Poetry (version 2.1.1)
$ poetry run python --version
Python 3.13.2
$ poetry self add poetry-plugin-shell
Using version ^1.0.1 for poetry-plugin-shell

Updating dependencies
Resolving dependencies... (1.3s)

Package operations: 3 installs, 10 updates, 0 removals

  - Updating anyio (4.8.0 -> 4.9.0): Failed

  CalledProcessError

  Command '['/usr/local/Cellar/poetry/2.1.1/libexec/bin/python', '/usr/local/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', 'anyio', '-y']' returned non-zero exit status 1.

  at /usr/local/Cellar/python@3.13/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 ['/usr/local/Cellar/poetry/2.1.1/libexec/bin/python', '/usr/local/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', 'anyio', '-y'] errored with the following return code 1
  
  Output:
  Found existing installation: anyio 4.8.0
  error: uninstall-no-record-file
  
  × Cannot uninstall anyio 4.8.0
  ╰─> The package's contents are unknown: no RECORD file was found for anyio.
  
  hint: The package was installed by brew. You should check if it can uninstall the package.
  

  at /usr/local/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 anyio.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with issue 42, which this report duplicates, and reproduce the failure using Poetry 2.1.1, Python 3.13.2, and poetry-plugin-shell. Done means the anyio dependency can be updated and poetry-plugin-shell installed without the reported uninstall error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.