python-poetry / python-poetry/install.python-poetry.org
Does not work with a shared libpython3.so on run-time search path
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 255
- フォーク
- 65
- 平均マージ
- 2時間 48分
- マージ済み PR(30日)
- 1
説明
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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、インストーラーのコマンドで共有ライブラリの失敗を再現し、報告された run と main の位置(552 行目と 919 行目)周辺のインストーラーコードを調べます。Python が実行時検索パスを通じて見つけた shared libpython3.so を使用したときに、インストーラーが正常に完了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100