[Bug 1960608] Re: python-pip >= 21.3.1+dfsg-3 fails pip3-root.sh autopkgtest with python3.10
Stefano Rivera
1960608 at bugs.launchpad.net
Fri Feb 11 22:04:06 UTC 2022
As I understand it, this is because pip expects the installation layouts
in sysconfig to be correct since Python 3.10. Previously it used the
layouts in distutils.sysconfig.
See:
* LP: #1940705
* LP: #1408092
* https://github.com/pypa/pip/pull/10358
The correct resolution here is to enable sysconfig-debian-schemes.diff
in Python 3.10. I'm not sure why this hasn't been enabled, yet.
** Also affects: python3.10 (Ubuntu)
Importance: Undecided
Status: New
** Changed in: python3.10 (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.10 in Ubuntu.
https://bugs.launchpad.net/bugs/1960608
Title:
python-pip >= 21.3.1+dfsg-3 fails pip3-root.sh autopkgtest with
python3.10
Status in python-pip package in Ubuntu:
New
Status in python3.10 package in Ubuntu:
Confirmed
Bug description:
pip3-root.sh expects world package to be installed in
/usr/local/lib/python3.*/dist-packages whereas it is actually
installed into /usr/lib/python3.10/site-packages/.
It even fails to uninstall the package right after installing it:
ubuntu at autopkgtest:~$ sudo python3 -m pip install world
Collecting world
Using cached world-4.1.1-py3-none-any.whl
Collecting atpublic
Using cached atpublic-3.0.1-py3-none-any.whl (4.8 kB)
Installing collected packages: atpublic, world
Successfully installed atpublic-3.0.1 world-4.1.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
ubuntu at autopkgtest:~$ sudo python3 -m pip uninstall world
WARNING: Skipping world as it is not installed.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1960608/+subscriptions
More information about the foundations-bugs
mailing list