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 doesn’t find the right thing to download #3852

Closed
3 tasks done
ThatXliner opened this issue Mar 28, 2021 · 7 comments
Closed
3 tasks done

Poetry doesn’t find the right thing to download #3852

ThatXliner opened this issue Mar 28, 2021 · 7 comments
Labels
kind/bug Something isn't working as expected

Comments

@ThatXliner
Copy link
Contributor

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate. (At least, abn told me this is a new bug (discord))
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: 11.2.1 (macOS Bjg Sur)
  • Poetry version:
  • Link of a Gist with the contents of your pyproject.toml file:
    (See below)

Issue

Alrighty. I'm on Big Sur, and I want to install Jinja2. Jinja2 has no wheel for Big Sur. Yet Poetry still chooses the latest macOS wheel (Catalina). Then it fails because it is not the right one. Poetry should be able to detect that it is not the correct wheel and/or fallback to installing via sdist.

This hack (a little modified) worked!

Before the hack, it looked a little like this:

@ThatXliner ThatXliner added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Mar 28, 2021
@abn
Copy link
Member

abn commented Mar 30, 2021

poetry run python -c 'import packaging.tags; print(list(str(t) for t in packaging.tags.sys_tags()))'

Returns: https://gist.github.com/ThatXliner/5cc7a5ecdb86f0308cd9c7ae1267707e

@abn
Copy link
Member

abn commented Mar 31, 2021

This looks like it is caused by pypa/packaging#318. Effectively we use pacakging.tags.sys_tags() internally to identify supported tags.

Master should be using a fixed packaging version.

You can test using poetry from master, as follows.

pipx install --force --suffix=@master 'poetry @ git+https://github.com/python-poetry/poetry.git@master'
poetry@master new foobar
poetry@master add MarkupSafe

@ThatXliner
Copy link
Contributor Author

It works (although now the normal poetry 1.1.5 works too). Just saying, the UI for 1.2.0a0 (master version as of writing this comment) is whack.
Screen Shot 2021-04-10 at 7 06 50 PM
It just stays at "installing"

@abn
Copy link
Member

abn commented Apr 13, 2021

1.1.5 might work because it got cached?

@ThatXliner
Copy link
Contributor Author

ThatXliner commented Apr 13, 2021

Hm maybe! I will try again probably this weekend

@ThatXliner
Copy link
Contributor Author

ThatXliner commented Oct 3, 2021

Cannot reproduce anymore (even with deleted cache) (version 1.1.10)

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 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 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

2 participants