Closed Bug 1932207 Opened 11 months ago Closed 11 months ago

mach bootstrap fails on Windows with FileNotFoundError: [WinError 2] The system cannot find the file specified

Categories

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

Unspecified
Windows 11
defect

Tracking

(firefox135 fixed)

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: jonco, Assigned: ahochheiden)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file error.txt

The mach bootstrap command fails with the following exception:

FileNotFoundError: [WinError 2] The system cannot find the file specified

  File "C:\mozilla-source\alloc\python\mozboot\mozboot\mach_commands.py", line 50, in bootstrap
    bootstrapper.bootstrap(command_context.settings)
  File "c:\mozilla-source\alloc\python\mozboot\mozboot\bootstrap.py", line 442, in bootstrap
    self._check_for_dev_drive(checkout_root)
  File "c:\mozilla-source\alloc\python\mozboot\mozboot\bootstrap.py", line 532, in _check_for_dev_drive
    file_system_info = subprocess.check_output(
                       ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\mozilla-build\python3\Lib\subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\mozilla-build\python3\Lib\subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\mozilla-source\alloc\third_party\python\sentry_sdk\sentry_sdk\integrations\stdlib.py", line 190, in sentry_patched_popen_init
    rv = old_popen_init(self, *a, **kw)  # type: ignore
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\mozilla-build\python3\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\mozilla-build\python3\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Full command output attached.

The problem was that powershell wasn't found in PATH. I've got this working now so feel free to close. It would be nice if it could report the actual problem though.

Assignee: nobody → ahochheiden
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P3
Pushed by ahochheiden@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7db56b0aa7d3 Add a graceful error message if PowerShell is not on path during bootstrap r=firefox-build-system-reviewers,sergesanspaille
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: