python-poetry / python-poetry/install.python-poetry.org
Does not work with a shared libpython3.so on run-time search path
未关闭
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 255
- 派生
- 65
- 平均合并
- 2 小时 48 分钟
- 30 天内合并 PR
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用安装程序命令重现共享库故障,并检查报告的 run 和 main 位置(第 552 行和第 919 行)附近的安装程序代码。当 Python 使用通过其运行时搜索路径找到的 shared libpython3.so 时,安装程序能够成功完成,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100