Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Duplicate of issue 42 for anyio dependency

未关闭
#43 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
20/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
cli, tooling

调研方向

从 issue 42 开始;此报告与该 issue 重复,并使用 Poetry 2.1.1、Python 3.13.2 和 poetry-plugin-shell 重现失败。完成标准是可以更新 anyio 依赖项并安装 poetry-plugin-shell,而不会出现报告中的卸载错误。

由索引模型根据 Issue 内容生成。

描述

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/[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 ['/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.
主要语言
Python
星标
141
派生
10
平均合并
59 分钟
30 天内合并 PR
3

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

python-poetry/poetry-plugin-shell 的其他 Issue

查看 python-poetry/poetry-plugin-shell 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。