Export fails due to urllib3 version mismatch

未关闭
#239 11 条评论 15 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

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

调研方向

使用所示的 poetry export 命令,通过 Poetry 1.5.1 和 poetry-plugin-export 1.5.0 重现该故障。首先跟踪 exporter 的依赖遍历器及其对兼容的 urllib3 候选版本的处理;当导出完成且未选择不兼容的版本时,即表示完成。

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

描述

I'm using version 1.5.0 of this plugin.

$ poetry --version   
Poetry (version 1.5.1)

$ poetry export -f requirements.txt --without-hashes -o requirements/prod.txt 

The `urllib3` package has the following compatible candidates `[Package('urllib3', '1.26.17')]`;  
but, the exporter dependency walker previously elected `urllib3 (2.0.6)` which is not compatible 
with the dependency `urllib3 (>=1.25.4,<1.27)`. Please contribute to `poetry-plugin-export` to 
solve this problem.

$ poetry self add urllib3   
Using version ^2.0.6 for urllib3

Updating dependencies
Resolving dependencies... (0.0s)

Because poetry-instance depends on poetry (1.5.1) which depends on urllib3 (>=1.26.0,<2.0.0), 
urllib3 is required. So, because poetry-instance depends on urllib3 (^2.0.6), version solving failed.

Not quite sure how I could contribute..

主要语言
Python
星标
336
派生
60
平均合并
10 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

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

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

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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