Skip to content
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 chooses the wheel package for a different Python version #2401

Closed
3 tasks done
jakobkogler opened this issue May 10, 2020 · 2 comments
Closed
3 tasks done

Poetry chooses the wheel package for a different Python version #2401

jakobkogler opened this issue May 10, 2020 · 2 comments
Labels
area/solver Related to the dependency resolver kind/bug Something isn't working as expected status/duplicate Duplicate issues

Comments

@jakobkogler
Copy link

  • 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).

Issue

I'm trying to install the library scrapy-rss.
On Pypi there are multiple different wheels, one for each Python version. Those wheels have actually different dependencies. The wheel scrapy_rss-0.1.9-py38-none-any.whl (for Python 3.8.2) simply has the dependency scrapy>=1.3.1, while the wheel scrapy_rss-0.1.9-py33-none-any.whl has the dependency scrapy<1.5.0.

I'm using Python 3.8.2 inside the poetry virtualenv. If I download the 38 wheel, and manually install it with poetry add ./scrapy_rss-0.1.9-py38-none-any.whl, it will install fine and choose the newest version of scrapy, namely scrapy=2.1.0. However If I just say: poetry add scrapy-rss, it will install the 33 wheel, and demand the scrapy version scrapy=1.4.0.

Why does poetry pick the wrong wheel in this case?

Here's the output of poetry add:

>> poetry add "scrapy-rss" --dry-run -vvv 
Using virtualenv: /home/jakob/.cache/pypoetry/virtualenvs/aab-HyhLZxPz-py3.8
PyPI: No release information found for scrapy-rss-0.1.2, skipping
PyPI: 9 packages found for scrapy-rss *
Using version ^0.1.9 for scrapy-rss

Updating dependencies
Resolving dependencies...
   1: fact: aab is 0.1.0
   1: derived: aab
   1: fact: aab depends on scrapy-rss (^0.1.9)
   1: selecting aab (0.1.0)
   1: derived: scrapy-rss (^0.1.9)
PyPI: No release information found for scrapy-rss-0.1.2, skipping
PyPI: 1 packages found for scrapy-rss >=0.1.9,<0.2.0
   1: fact: scrapy-rss (0.1.9) depends on cryptography (<2.0)
   1: fact: scrapy-rss (0.1.9) depends on pyOpenSSL (<17.3.0)
   1: fact: scrapy-rss (0.1.9) depends on python-dateutil (*)
   1: fact: scrapy-rss (0.1.9) depends on scrapy (<1.5.0)
   1: fact: scrapy-rss (0.1.9) depends on six (*)
   1: selecting scrapy-rss (0.1.9)
...

Btw, pip will choose the correct version. In a new virtualenv, running pip install scrapy-rss will install the 38 wheel. So this must be a bug on the poetry side.

@jakobkogler jakobkogler added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels May 10, 2020
@finswimmer finswimmer added the area/solver Related to the dependency resolver label May 10, 2020
@mikenerone
Copy link

Duplicates #2284

@finswimmer finswimmer added the status/duplicate Duplicate issues label Aug 29, 2020
@abn abn removed the status/triage This issue needs to be triaged label Sep 25, 2020
Copy link

github-actions bot commented Mar 3, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/solver Related to the dependency resolver kind/bug Something isn't working as expected status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

4 participants