ResolutionImpossible, duplicate requirement with contradicting Python version #3047
Unanswered
aeisenbarth
asked this question in
Q&A
Replies: 1 comment
-
Correct, but PDM doesn't support this kind of constraint in a single lock result. However, you can look at lock targets, the docs include an example similar to your case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For my project, PDM fails to resolve dependencies. I don't know whether I should do something differently, or something is wrong in the dependency, or in PDM (2.16.1):
pyproject.toml:
I did
pdm install
which takes very long and fails with the following log:Looking at the dependency
prefect
shows that it lists a duplicate requirement:Apparently, this should mean, if Python < 3.12 select pendulum < 3.0, otherwise pendulum >= 3.0.0, <4. It seems PDM tries to find a way to fulfill both constraints at the same time.
[tool.pdm.resolution.overrides]
? Or do I have to constrain it to a single Python version?Beta Was this translation helpful? Give feedback.
All reactions