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

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

Aperta
#156 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Python
Stelle
255
Fork
65
Merge medio
2h 48m
PR unite (30g)
1

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci il comando segnalato su Ubuntu 24.04 con Python 3.12.9, quindi esamina il percorso di creazione dell’ambiente dello script ufficiale dell’installer e l’output referenziato di /install/poetry-installer-error-m9digvmf.log. L’attività è completata quando l’installer termina correttamente in questo ambiente senza l’errore /etc/poetry/venv/bin/python3: No module named ensurepip.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
tooling
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.