Mach bootstrap fails with `Unable to locate package python-pip` on debian (testing / bullseye)
Categories
(Firefox Build System :: Bootstrap Configuration, defect)
Tracking
(Not tracked)
People
(Reporter: djvj, Unassigned)
Details
Just got this failure after doing a apt-get upgrade
on my debian system, and then trying to do a mach bootstrap after a fresh checkout of mozilla-central:
cat /etc/debian_version:
bullseye/sid
apt-cache search python-pip
python-pip-whl - Python package installer
Bootstrap output and stack trace:
Please choose the version of Firefox you want to build:
- Firefox for Desktop Artifact Mode
- Firefox for Desktop
- GeckoView/Firefox for Android Artifact Mode
- GeckoView/Firefox for Android
Your choice: 2
Executing as root: sudo apt-get install autoconf2.13 build-essential nodejs python-pip python-setuptools unzip uuid zip python-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-pip
Error running mach:
['bootstrap']
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.
If filing a bug, please include the full output of mach, including this error
message.
The details of the failure are as follows:
subprocess.CalledProcessError: Command '['sudo', 'apt-get', 'install', 'autoconf2.13', 'build-essential', 'nodejs', 'python-pip', 'python-setuptools', 'unzip', 'uuid', 'zip', 'python-dev']' returned non-zero exit status 100.
File "/home/kvijayan/checkouts/mozilla-central/python/mozboot/mozboot/mach_commands.py", line 44, in bootstrap
bootstrapper.bootstrap()
File "/home/kvijayan/checkouts/mozilla-central/python/mozboot/mozboot/bootstrap.py", line 442, in bootstrap
self.instance.install_system_packages()
File "/home/kvijayan/checkouts/mozilla-central/python/mozboot/mozboot/debian.py", line 137, in install_system_packages
self.apt_install(*packages)
File "/home/kvijayan/checkouts/mozilla-central/python/mozboot/mozboot/base.py", line 422, in apt_install
self.run_as_root(command)
File "/home/kvijayan/checkouts/mozilla-central/python/mozboot/mozboot/base.py", line 378, in run_as_root
subprocess.check_call(command, stdin=sys.stdin)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
Comment 1•5 years ago
|
||
The package indeed no longer exists in bullseye
. Unfortunately, there also does not seem to be a replacement/renamed package that I can find as far as I can tell. This seems to be a step in the direction of deleting all Python 2 packages from the Debian distro which is eventually the plan.
If there is a workaround for this, I'm not sure what it is. Could be as simple as adding another repo, but I'm not sure which repo that would be/what other consequences could arise from that change.
Comment 2•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 3•5 years ago
|
||
This should be fixed in the patch for bug 1626098.
Description
•