Poetry SolverProblemError, trying to understand the issue #3790
Unanswered
invokermain
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Today I saw someone's poetry project fail to resolve versions with the following setup:
Project
requirespython = "~3.8"
Dependency
(from git) requires:python = "^3.8.6"
This leads to the following error:
Reading the syntax documentation these version requirements should be compatible as they both allow
>=3.8.6,<3.9.0
.My guess is that the issue is caused because the error message treats Python like a package but obviously it is not a package?
Therefore poetry will check the compatibility against what Python version is current installed and not what is allowed, i.e. poetry cannot update Python to satisfy a new dependency. If this is the case then the error message is misleading as it treats python as any other Package?
Can someone weigh in on this.
Beta Was this translation helpful? Give feedback.
All reactions