./mach ide vscode fails: ModuleNotFoundError: No module named 'gyp'
Categories
(Firefox Build System :: MozillaBuild, defect)
Tracking
(firefox-esr128 unaffected, firefox136 unaffected, firefox137 unaffected, firefox138 wontfix, firefox139 fixed)
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.
Comment 1•7 months ago
|
||
This sounds like it could be a regression from bug 1941759.
Comment 2•7 months ago
|
||
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.
Updated•7 months ago
|
Updated•7 months ago
|
Comment 4•7 months ago
|
||
(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.
Updated•7 months ago
|
Comment 6•6 months ago
|
||
The fix for this will be in bug 1956317, so I will close this as a duplicate.
Updated•5 months ago
|
Description
•