Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Open
Description
Bug report
Checklist
- I am confident this is a bug in CPython, not a bug in a third-party project
- I have searched theCPython issue tracker,
and am confident this bug has not been reported before
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.13.0a0 (heads/main:d4e534cbb3, Sep 2 2023, 21:58:58) [GCC 13.2.1 20230803 [revision cc279d6c64562f05019e1d12d0d825f9391b5553]]
A clear and concise description of the bug:
On openSUSE Tumbleweed 20230823, when CPython is compiled from source,
lib-dynloadis placed in/usr/local/lib64/python3.13.- everything else is placed in
/usr/local/lib/python3.13.
As a result, the interpreter is unable to locate some modules likereadline (even thoughreadline-devel is installed) and_posixsubprocess.
Here are the exact commands I ran.
$CFLAGS='-march=native -mtune=native' ./configure--enable-optimizations--with-lto=yes$make-j4$sudomake-j4altinstall$python3.13Couldnotfindplatformdependentlibraries<exec_prefix>Python3.13.0a0 (heads/main:d4e534cbb3,Sep22023,21:58:58) [GCC13.2.120230803 [revisioncc279d6c64562f05019e1d12d0d825f9391b5553]]onlinuxType"help","copyright","credits"or"license"formoreinformation.Traceback (mostrecentcalllast):File"/etc/pythonstart",line7,in<module>importreadlineModuleNotFoundError:Nomodulenamed'readline'>>>
Symlinkinglib-dynload fixed the problem for me:
$sudoln-s/usr/local/lib64/python3.13/lib-dynload/usr/local/lib/python3.13$python3.13Python3.13.0a0 (heads/main:d4e534cbb3,Sep22023,21:58:58) [GCC13.2.120230803 [revisioncc279d6c64562f05019e1d12d0d825f9391b5553]]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>
but I believe everything should go in/usr/local/lib, as happens on other Linux distributions I have used.