Closed Bug 1955477 Opened 7 months ago Closed 6 months ago

./mach ide vscode fails: ModuleNotFoundError: No module named 'gyp'

Categories

(Firefox Build System :: MozillaBuild, defect)

defect

Tracking

(firefox-esr128 unaffected, firefox136 unaffected, firefox137 unaffected, firefox138 wontfix, firefox139 fixed)

RESOLVED DUPLICATE of bug 1956317
Tracking Status
firefox-esr128 --- unaffected
firefox136 --- unaffected
firefox137 --- unaffected
firefox138 --- wontfix
firefox139 --- fixed

People

(Reporter: heather, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

I launch vscode with ./mach ide vscode as instructed in the VSCode integration source docs, but today that stopped working for no apparent reason. The failure is:

mozbuild.frontend.reader.BuildReaderError: 
==============================
FATAL ERROR PROCESSING MOZBUILD FILE
==============================

The error occurred while processing the following file:

    /home/heather/Projects/thunderbird/thunderbird-mercurial_EWS/source/security/moz.build

The error appears to be part of the mozbuild.frontend.reader Python module itself! It is possible you have stumbled across a legitimate bug.

Traceback (most recent call last):
  File "/home/heather/Projects/thunderbird/thunderbird-mercurial_EWS/source/python/mozbuild/mozbuild/frontend/reader.py", line 1124, in read_mozbuild
    for s in self._read_mozbuild(
             ~~~~~~~~~~~~~~~~~~~^
        path, config, descend=descend, metadata=metadata
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ):
    ^
  File "/home/heather/Projects/thunderbird/thunderbird-mercurial_EWS/source/python/mozbuild/mozbuild/frontend/reader.py", line 1229, in _read_mozbuild
    from .gyp_reader import GypProcessor
  File "/home/heather/Projects/thunderbird/thunderbird-mercurial_EWS/source/python/mozbuild/mozbuild/frontend/gyp_reader.py", line 10, in <module>
    import gyp
ModuleNotFoundError: No module named 'gyp'

Environment Info
OS: Debian Trixie
Python:

$ python --version
Python 3.13.2
$ which python
/home/heather/.venv/bin/python

I have tried recreating my ~/.venv, reinstalling node-gyp with npm, updating my system, rebooting - nothing seems to work.

This sounds like it could be a regression from bug 1941759.

Keywords: regression
Regressed by: 1941759

Set release status flags based on info from the regressing bug 1941759

:sergesanspaille, since you are the author of the regressor, bug 1941759, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Also on arm64 Windows.

OS: Linux → All
Hardware: x86_64 → All

(In reply to Mike Hommey [:glandium] from comment #1)

This sounds like it could be a regression from bug 1941759.

Thanks! I ran into this issue on Windows x64 and after hg backout 629b35d7d3a6dd04f383e1066e382e7abdb1f6dd it works fine.

Should be fixed alongside Bug 1956317

Flags: needinfo?(sguelton)
Severity: -- → S3

The fix for this will be in bug 1956317, so I will close this as a duplicate.

Status: NEW → RESOLVED
Closed: 6 months ago
Duplicate of bug: 1956317
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.