*** This bug is a duplicate of bug 1814653 ***
https://bugs.launchpad.net/bugs/1814653
Public bug reported:
sysconfig.distutils.get_python_lib() reports the path
'/usr/local/lib/python3/dist-packages' for the prefix '/usr/local'.
This does not match the path '/usr/local/lib/python3.6/dist-packages' which is
listed in sys.path.
Command: python3 -c "from distutils import sysconfig;
print(sysconfig.get_python_lib(prefix='/usr/local'))"
Output: /usr/local/lib/python3/dist-packages
Command: python3 -c "import sys; print(sys.path)"
Output: ['', '/usr/local/python36.zip', '/usr/lib/python3.6',
'/usr/lib/python3.6/lib-dynload',
'/home/administrator/.local/lib/python3.6/site-packages',
'/usr/local/lib/python3.6/dist-packages', '/usr/lib/python3/dist-packages']
Ubuntu release version: Ubuntu 18.04.3 LTS
python3-distutils version: 3.6.8~18.04
If this is a bug then this could be fixed by patching
distutils/sysconfig.py in some way. (attached)
** Affects: python3-defaults (Ubuntu)
Importance: Undecided
Status: New
** Tags: python3
** Patch added: "distutils/sysconfig.py patch"
https://bugs.launchpad.net/bugs/1847510/+attachment/5296038/+files/python3_path_mismatch.patch
** This bug has been marked a duplicate of bug 1814653
get_python_lib() returns path to python3 instead of python3.6
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1847510
Title:
python3 distutils reports path which is not in sys.path for /usr/local
prefix
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1847510/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs