Closed
Bug 1671232
Opened 5 years ago
Closed 5 years ago
|mach build| fails with ModuleNotFoundError: No module named 'mach'
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1669934
People
(Reporter: agi, Unassigned)
Details
Clean objdir, MacOS 15.5
./mach build
Config object not found by mach.
0:01.28 Clobber not needed.
0:01.28 Adding make options from /Users/asferro/workspace/mozilla-central/mozconfig
MOZ_MAKE_FLAGS=-j40
MOZ_OBJDIR=/Users/asferro/workspace/mozilla-central/objdir
OBJDIR=/Users/asferro/workspace/mozilla-central/objdir
FOUND_MOZCONFIG=/Users/asferro/workspace/mozilla-central/mozconfig
export FOUND_MOZCONFIG
0:01.30 /usr/bin/make -f client.mk MOZ_PARALLEL_BUILD=40 -s configure
0:01.32 cd /Users/asferro/workspace/mozilla-central/objdir
0:01.32 /Users/asferro/workspace/mozilla-central/configure
0:01.62 Re-executing in the virtualenv
0:01.90 Adding configure options from /Users/asferro/workspace/mozilla-central/mozconfig
0:01.90 --enable-application=mobile/android
0:01.90 --target=x86_64
0:01.90 --with-macos-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
0:01.90 --with-compiler-wrapper=/usr/local/bin/icecc
0:01.90 checking for vcs source checkout... git
0:01.96 checking for a shell... /bin/sh
0:02.07 checking for host system type... x86_64-apple-darwin19.5.0
0:02.07 checking for target system type... x86_64-unknown-linux-android
0:02.08 Traceback (most recent call last):
0:02.08 File "/Users/asferro/workspace/mozilla-central/configure.py", line 213, in <module>
0:02.08 sys.exit(main(sys.argv))
0:02.08 File "/Users/asferro/workspace/mozilla-central/configure.py", line 54, in main
0:02.08 sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 447, in run
0:02.08 self.include_file(path)
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 438, in include_file
0:02.08 exec_(code, self)
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/util.py", line 56, in exec_
0:02.08 exec(object, globals, locals)
0:02.08 File "/Users/asferro/workspace/mozilla-central/moz.configure", line 156, in <module>
0:02.08 when='--enable-compile-environment')
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 775, in include_impl
0:02.08 self.include_file(what)
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 438, in include_file
0:02.08 exec_(code, self)
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/util.py", line 56, in exec_
0:02.08 exec(object, globals, locals)
0:02.08 File "/Users/asferro/workspace/mozilla-central/build/moz.configure/toolchain.configure", line 103, in <module>
0:02.08 include('android-ndk.configure', when=compiling_android)
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 775, in include_impl
0:02.08 self.include_file(what)
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 438, in include_file
0:02.08 exec_(code, self)
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/util.py", line 56, in exec_
0:02.08 exec(object, globals, locals)
0:02.08 File "/Users/asferro/workspace/mozilla-central/build/moz.configure/android-ndk.configure", line 10, in <module>
0:02.08 @imports(_from='mozboot.android', _import='NDK_VERSION')
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 758, in decorator
0:02.08 depends = DependsFunction(self, func, dependencies, when=when)
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 129, in __init__
0:02.08 sandbox._value_for(self)
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 544, in _value_for
0:02.08 return self._value_for_depends(obj)
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/util.py", line 1021, in method_call
0:02.08 cache[args] = self.func(instance, *args)
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 553, in _value_for_depends
0:02.08 value = obj.result()
0:02.08 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/util.py", line 1021, in method_call
0:02.09 cache[args] = self.func(instance, *args)
0:02.09 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 155, in result
0:02.09 return self._func(*resolved_args)
0:02.09 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 1207, in wrapped
0:02.09 self._apply_imports(func, glob)
0:02.09 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 880, in _apply_imports
0:02.09 self._get_one_import(_from, _import, _as, glob)
0:02.09 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/configure/__init__.py", line 1010, in _get_one_import
0:02.09 exec_(import_line, {}, glob)
0:02.09 File "/Users/asferro/workspace/mozilla-central/python/mozbuild/mozbuild/util.py", line 56, in exec_
0:02.09 exec(object, globals, locals)
0:02.09 File "<string>", line 1, in <module>
0:02.09 File "/Users/asferro/workspace/mozilla-central/python/mozboot/mozboot/android.py", line 16, in <module>
0:02.09 from mozboot.bootstrap import MOZCONFIG_SUGGESTION_TEMPLATE
0:02.09 File "/Users/asferro/workspace/mozilla-central/python/mozboot/mozboot/bootstrap.py", line 33, in <module>
0:02.09 from mach.util import UserError
0:02.09 ModuleNotFoundError: No module named 'mach'
0:02.10 *** Fix above errors and then restart with "./mach build"
0:02.10 make: *** [configure] Error 1
| Reporter | ||
Comment 1•5 years ago
|
||
Looks like this is another variation of https://bugzilla.mozilla.org/show_bug.cgi?id=1669934#c15
Comment 2•5 years ago
|
||
Looks like this is another variation of https://bugzilla.mozilla.org/show_bug.cgi?id=1669934#c15
Yep -- looks like I can reproduce this if I brew uninstall python.
So for you, running brew install python (and making sure that configure uses that python) may fix the problem?
Updated•5 years ago
|
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•