-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry fails to parse required Python version #8154
Comments
Not a bug. Please read the error message, read the FAQ, close this issue |
A quick search reveals an incredible amount of bugreports stemming from the same confusion. |
sure, please submit a merge request making the error message a bit more clear |
For further reference: numpy/numpy#24810 I'm not understanding how pointing to the documentation above answers the question "When I specify a constraint of Python as >=3.10,<4.0 and scipy specifies a constraint on Python as <3.13,>=3.9, I would expect the resolution of the constraint to be >=3.10, <3.13, then why is it >=3.13,<4.0?". Reading the FAQ at https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies tells me that I can set dependency to use only a specific version of python. But if scipy is a transitive dependency, I have no direct control over setting the python version, so how is that going to help me here? I appreciate that dynamically computing constraints is a hard problem, and I would also like to say that I don't know how the error message could be clearer, since I don't understand how the documentation answers my questions on the cause of the - to me - weird version resolution of >=3.13, <4.0 |
When it says
It does NOT mean to change:
to
It means to change it to:
Which resolves just fine! If a future user is trying to use whatever outdated version of your package exists when 3.13 comes out, then it'll break because |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Poetry version: 1.5.1
Python version: 3.10.6
OS version and name: Windows 11
pyproject.toml: https://gist.github.com/vslotman/84b56231d670544b7e3c6a4a89979750
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) and have included the output below.Issue
I try to install scipy in a clean poetry env. Somehow required python version is determined as >=3.13,<4.0.
Full poetry -vvv log here: https://gist.github.com/vslotman/2b44bd96bd4c0b2b1498baf233b745d1
The text was updated successfully, but these errors were encountered: