[New-bugs-announce] [issue34058] Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/

Ted Kandell report at bugs.python.org
Thu Jul 5 20:53:40 EDT 2018


New submission from Ted Kandell <ted.kandell at open-genomes.org>:

The default Python 3.7 install (./configure with no parameters) does not work (at least) on openSUSE Leap 42.3. 

Python3 gives a ModuleNotFoundError: No module named 'readline'
 error, and pip3 has a ModuleNotFoundError: No module named '_socket' error, because the site libraries cannot be found.

The fix is to manually:
sudo ln -s /usr/local/lib64/python3.7/lib-dynload/ /usr/local/lib/python3.7/lib-dynload

The same problem should also be present with a PYTHONHOME other than the default /usr/local .

I suspect this is a more widespread problem than just openSUSE Leap 42.3, and may exist in other distros as well.

The fix should be for make install to automatically create the symbolic link for the  $PYTHONHOME/lib64/python3.7/lib-dynload directory in $PYTHONHOME/lib/python3.7/ .

----------
components: Installation
messages: 321145
nosy: tkandell
priority: normal
severity: normal
status: open
title: Default Python 3.7 install broken on openSUSE Leap 42.3: $PYTHONHOME/lib64/python3.7/lib-dynload/ not linked to $PYTHONHOME/lib/python3.7/lib-dynload/
type: crash
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34058>
_______________________________________


More information about the New-bugs-announce mailing list