[Bug 1960608] Re: python-pip >= 21.3.1+dfsg-3 fails pip3-root.sh autopkgtest with python3.10

Alexandre Ghiti 1960608 at bugs.launchpad.net
Mon Feb 14 16:46:56 UTC 2022


I talked with doko about that, and he told me to give it a try. The
patch does not apply directly, I had to rebase it: it seems to fix this
issue (i.e.: I can install a package to the right location with my new
python 3.10 package here [1]) but then when installed, it fails to build
python-pip package with the following error:

make[1]: Leaving directory '/tmp/autopkgtest.hzRvXB/build.kr1/real-tree'
   dh_installsystemduser -O--buildsystem=pybuild
   dh_lintian -O--buildsystem=pybuild
   dh_perl -O--buildsystem=pybuild
   dh_usrlocal -O--buildsystem=pybuild
dh_usrlocal: error: debian/python3-pip/usr/local/bin/pip is not a directory
make: *** [debian/rules:8: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
blame: python-pip-22.0.2+dfsg/
badpkg: rules build failed with exit code 2


I attach my rebase that may be wrong if you can take a look.

(I'll send the same info by mail as requested by doko.)

[1]
https://launchpad.net/~alexghiti/+archive/ubuntu/riscv/+sourcepub/13261732/+listing-
archive-extra

** Patch added: "NEW-sysconfig-debian-schemes.diff"
   https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1960608/+attachment/5560804/+files/NEW-sysconfig-debian-schemes.diff

-- 
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