Closed Bug 1623544 Opened 5 years ago Closed 5 years ago

`mach install-moz-phab` after `mach bootstrap` fails due to missing `python3-pip` on Debian

Categories

(Firefox Build System :: Bootstrap Configuration, defect, P3)

defect

Tracking

(firefox76 fixed)

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: nalexander, Assigned: glob)

References

Details

Attachments

(1 file)

Setting up a new Debian 10 (buster) box, after cloning and running bootstrap I still don't have enough. Maybe we should install python3-pip during bootstrap as well?

nalexander@nanger:~/Mozilla/gecko$ ./mach install-moz-phab
 0:00.29 Installing moz-phab
Error running mach:

    ['install-moz-phab']

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:

FileNotFoundError: [Errno 2] No such file or directory: 'pip3': 'pip3'

  File "/home/nalexander/Mozilla/gecko/tools/phabricator/mach_commands.py", line 71, in install_moz_phab
    subprocess.run(command)
  File "/usr/lib/python3.7/subprocess.py", line 472, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)

Python started bundling pip with Python 3.4 (source) however: "Appropriately versioned pip commands may also be available" (emphasis mine).

Does python3 -m pip work? It should output the help for pip.

Flags: needinfo?(nalexander)
No longer regressed by: 1495394
See Also: → 1495394
Priority: -- → P3

I just installed Debian 10 to test this - python3 -m pip doesn't work either.
Debian have decided to remove a core feature of Python from their Python package. I'm at a loss for words.

Assignee: nobody → glob
Flags: needinfo?(nalexander)
Pushed by bjones@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3aecd3848e20 Install python3-pip on Debian during bootstrap; r=firefox-build-system-reviewers,rstewart
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76

(In reply to Byron Jones ‹:glob› 🎈 from comment #2)

I just installed Debian 10 to test this - python3 -m pip doesn't work either.
Debian have decided to remove a core feature of Python from their Python package. I'm at a loss for words.

Sorry for not helping here -- technically I've been on parental leave so things have been pretty wild re: child-care.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: