Closed Bug 1587717 Opened 5 years ago Closed 5 years ago

Can't `git commit` or `mach try chooser` because of ImportError: No module named mozbuild.util

Categories

(Firefox Build System :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1590328

People

(Reporter: farre, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Traceback (most recent call last):
File ".git/hooks/pre-commit", line 17, in <module>
from mozversioncontrol import get_repository_object, InvalidRepoPath
File "/home/farre/src/gecko/work-1/tools/lint/../../python/mozversioncontrol/mozversioncontrol/init.py", line 14, in <module>
from mozbuild.util import ensure_subprocess_env
ImportError: No module named mozbuild.util

Priority: -- → P1
Summary: ImportError: No module named mozbuild.util → Can't `git commit` or `mach trychooser` because of ImportError: No module named mozbuild.util
Summary: Can't `git commit` or `mach trychooser` because of ImportError: No module named mozbuild.util → Can't `git commit` or `mach try chooser` because of ImportError: No module named mozbuild.util

I guess for now you can git commit --no-verify or just modify .git/hooks/pre-commit to not do anything.

Yep, I'll have to remove the hook completely, since it also breaks ./mach try work flow. Thanks.

Fix in bug 1590328. Sorry I didn't see this one before filing.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Has Regression Range: --- → yes
Keywords: regression
You need to log in before you can comment on or make changes to this bug.