-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 doesn't install the correct dependency according to its supported Python version #5447
Comments
I see a similar problem with something like the following:
In this case, poetry attempts to install only the first URL--if I look at
So, poetry only stores a single URL in the lock file, despite there being multiple URLs specified in EDIT: The python versions above were incorrect (i.e., previously, it had |
If I use the |
@roipoussiere it looks as though you have now published ocp-vtk to pypi, so you should be able simply to go: Not to say that this isn't a valid bug report - possibly poetry should do a better job with the list of urls and markers that you were using. But I expect that the main line case should work just fine with different python versions and platforms and so on. (by the way the |
Yes, I don't need to specify wheel urls now.
fixed, thanks.
I don't understand why this isn't a valid bug report. Poetry downloads the wrong wheel according to my python version, this is not an expected behavior, so I made a bug report. Since the dependency is published on PyPI I don't personally need a response now, so feel free to close this if you think is not relevant. |
Apologies if my double-negative confused you. We are agreeing. |
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. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: ubuntu 21.10
Poetry version: 1.1.13
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/roipoussiere/94e123906e86448e755f04a1ad798d77
Issue
I have a wheel dependency on specific url for many platforms (Linuw/macOS/Windows) and many Python version (3.8, 3.9, 3.10).
Despite the fact I use Python 3.9, when I try
poetry install
, the python 3.8 version of the wheel is downloaded.I also tried to:
python = "^3.8"
bypython = "^3.9"
(same thing);python = "~3.8", markers = "platform_system == 'Linux'",
bymarkers = "python_version ~= '3.8' and platform_system == 'Linux'",
(same thing).Maybe related to #5378 or #5205, I don't think it's the same issue but I'm not sure.
The text was updated successfully, but these errors were encountered: