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

ERROR: No matching distribution found for poetry==1.5.1 #121

Open
rich9474 opened this issue Jul 7, 2023 · 4 comments
Open

ERROR: No matching distribution found for poetry==1.5.1 #121

rich9474 opened this issue Jul 7, 2023 · 4 comments

Comments

@rich9474
Copy link

rich9474 commented Jul 7, 2023

I had an issue installing on both Rocky Linux 8.7 and Ubuntu 20.04 LTS. Where the Official installer was failing to select a version that was available in the repo, and was just blindly trying to install v1.5.1. The solution was to specify a newer version of pythoon

Official instructions state the command to install is
curl -sSL https://install.python-poetry.org | python3 -

But this was resulting in Python 3.6 being used, which apparently is no longer supported. I had 3.9 installed on the systems.
The installer should really run a check to see if the python version it is using is too old and not supported and give an appropriate error. Alternatively, it could select the most up to date version that is available on that repo. Either way, it shouldn't fail with this error.

curl -sSL https://install.python-poetry.org | python3.9 - worked, but I wasted a fair bit of time working out why it was failing.

@gischer
Copy link

gischer commented Mar 5, 2024

This is bizarre. I just ran into a similar issue where the docs for building mongodb refer to installing poetry 1.5.1. Which, as far as I can see, doesn't exist, but 1.1.5 does exist. I would post an issue with them, but issues are off.

https://github.com/gischer/mongo/blob/master/docs/building.md

@dveni
Copy link

dveni commented Jun 10, 2024

Same issue here trying to install the current poetry version (1.8.3) on red hat 8.9. Using python 3.6.8 resulted in the error ERROR: No matching distribution found for poetry==1.8.3, while using python 3.11.5 worked fine. Seems like a recurrent issue: #32

@dalepotter
Copy link

Also experienced a similar error today using Ubuntu 20.04.6 LTS (with default python version of 3.8.10): ERROR: No matching distribution found for poetry==2.0.1

$ cat <FULL PATH REDACTED>/poetry-installer-error-g0tw2vwb.log
ERROR: Could not find a version that satisfies the requirement poetry==2.0.1 (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.0.post1, 0.4.1, 0.4.2, 0.5.0b1, 0.5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 1.1.10, 1.1.11, 1.1.12, 1.1.13, 1.1.14, 1.1.15, 1.2.0a1, 1.2.0a2, 1.2.0b1, 1.2.0b2, 1.2.0b3, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.2.2, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5)
ERROR: No matching distribution found for poetry==2.0.1

Traceback:

  File "<stdin>", line 937, in main
  File "<stdin>", line 574, in run
  File "<stdin>", line 596, in install
  File "<stdin>", line 699, in install_poetry
  File "<stdin>", line 389, in pip
  File "<stdin>", line 386, in python
  File "<stdin>", line 379, in run

Install worked fine using:
$ curl -sSL https://install.python-poetry.org | python3.9 -

@Secrus
Copy link
Member

Secrus commented Feb 4, 2025

Poetry 2 requires Python 3.9+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants