Skip to content

Why does Poetry select incorrect dependencies when pip does not? #7128

Answered by neersighted
johnthagen asked this question in Q&A
Discussion options

You must be logged in to vote

Poetry uses the PyPI JSON API when available to get requirements for a package (e.g. https://pypi.org/pypi/open3d/0.16.1/json). This API uses the metadata of the first wheel to be uploaded. In general, Poetry does not (currently) support wheels with disparate requirements, which is not necessary in 99% of Python packaging scenarios due to the richness of PEP 508 markers.

I have not figured out which package in the tree is providing inconsistent requirements, but that is probably what is happening, and the best place to start figuring out who is distributing wheels incompatible with Poetry.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@johnthagen
Comment options

@johnthagen
Comment options

@apockill
Comment options

@johnthagen
Comment options

@apockill
Comment options

Answer selected by johnthagen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants