*** 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 Touch seeded packages, which is subscribed to python3-defaults in Ubuntu. https://bugs.launchpad.net/bugs/1847510 Title: python3 distutils reports path which is not in sys.path for /usr/local prefix Status in python3-defaults package in Ubuntu: New Bug description: 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) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1847510/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp