python-poetry / python-poetry/install.python-poetry.org

Poetry Installation(Official Installer Script) error with Python 3.12.9 on Ubuntu 24.04

Offen
#156 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
255
Forks
65
Ø Merge
2 Std. 48 Min.
Gemergte PRs (30 T.)
1

Beschreibung

I encountered an error while trying to install Poetry using Python 3.12. The installation fails with following error message:

Install Python 3.12
Run the Poetry installation: curl -sSL https://install.python-poetry.org | POETRY_HOME=/etc/poetry python3 -

The installation fails with following error message:
` Installing Poetry...
Retrieving Poetry metadata

Welcome to Poetry!

This will download and install the latest version of Poetry,
a dependency and package manager for Python.

It will add the poetry command to Poetry's bin directory, located at:

/etc/poetry/bin

You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.

Installing Poetry (2.0.1)
Installing Poetry (2.0.1): Creating environment
Installing Poetry (2.0.1): An error occurred. Removing partial environment.
Poetry installation failed.
See /install/poetry-installer-error-m9digvmf.log for error logs.
Poetry installation failed. See error log for details.
Poetry installation failed. Printing error log:
/etc/poetry/venv/bin/python3: No module named ensurepip

Traceback:

File "", line 937, in main
File "", line 576, in run`

Operating System: Ubuntu 24.04
Python Version: 3.12.9
Poetry Version: 2.0.1

I suspect that there might be an issue with the Poetry installation script or its dependencies when running on Python 3.12.9.

Please let me know if you need any additional information or fixes available for this issue.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduziere den gemeldeten Befehl auf Ubuntu 24.04 mit Python 3.12.9 und untersuche anschließend den Pfad zur Umgebungserstellung im offiziellen Installationsskript sowie die referenzierte Ausgabe von /install/poetry-installer-error-m9digvmf.log. Als erledigt gilt die Aufgabe, wenn das Installationsprogramm in dieser Umgebung erfolgreich abgeschlossen wird, ohne dass der Fehler /etc/poetry/venv/bin/python3: No module named ensurepip auftritt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.