python-poetry / python-poetry/install.python-poetry.org
Does not work with a shared libpython3.so on run-time search path
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 255
- Forks
- 65
- Merge moyen
- 2 h 48 min
- PR mergées (30 j)
- 1
Description
I'm using the CPython configure flags --enable-shared with an rpath interpolation (LDFLAGS). Linux platform (RHEL 8.3).
The interpreter's stdlib venv works just fine, but poetry installer doesn't like something about that config
$ readelf -d /usr/local/bin/python3.11 | grep rpath
0x000000000000000f (RPATH) Library rpath: [$ORIGIN/../lib]
$ ldd /usr/local/bin/python3.11 | grep libpython
libpython3.11.so.1.0 => /usr/local/bin/../lib/libpython3.11.so.1.0 (0x00007ffff7632000)
$ curl -sSL https://install.python-poetry.org | /usr/local/bin/python3.11 -
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:
/home/wglenn/.local/bin
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.2.2): An error occurred. Removing partial environment.
Poetry installation failed.
See /home/wglenn/git/python/poetry-installer-error-t8owbf6b.log for error logs.
The log:
$ cat /home/wglenn/git/python/poetry-installer-error-t8owbf6b.log
/home/wglenn/.local/share/pypoetry/venv/bin/python3.11: error while loading shared libraries: libpython3.11.so.1.0: cannot open shared object file: No such file or directory
Traceback:
File "<stdin>", line 919, in main
File "<stdin>", line 552, in run
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire l’échec de la bibliothèque partagée avec la commande de l’installateur et examinez le code de l’installateur autour des emplacements run et main signalés (lignes 552 et 919). C’est terminé lorsque l’installateur s’exécute jusqu’au bout avec succès quand Python utilise une shared libpython3.so trouvée via son chemin de recherche à l’exécution.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100