python-poetry / python-poetry/poetry-plugin-export

Export fails due to urllib3 version mismatch

Open
#239 11 comments 15 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
335
Forks
57
Avg merge
1h 23m
Merged PRs (30d)
3

Description

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..

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

Reproduce the failure with Poetry 1.5.1 and poetry-plugin-export 1.5.0 using the shown poetry export command. Start by tracing the exporter dependency walker and its handling of the compatible urllib3 candidates; done means the export completes without selecting an incompatible version.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.