Closed Bug 1369599 Opened 7 years ago Closed 7 years ago

Unable to run "mach web-platform-tests-update" due to "ImportError: No module named config" (rev: aeb3d0ca558f)

Categories

(Testing :: web-platform-tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: edgar, Unassigned)

Details

# revision

aeb3d0ca558f Backed out 3 changesets (bug 1368674) for Android test failures. a=merge

# Error message

Error running mach:

    ['web-platform-tests-update']

The error occurred in mach itself. This is likely a bug in mach itself or a
fundamental problem with a loaded module.

Please consider filing a bug against mach by going to the URL:

    https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=mach


If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

ImportError: No module named config

  File "/Volumes/workspace/mercurial/mozilla-central/python/mach/mach/main.py", line 352, in run
    return self._run(argv)
  File "/Volumes/workspace/mercurial/mozilla-central/python/mach/mach/main.py", line 407, in _run
    args = parser.parse_args(argv)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1701, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1733, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1942, in _parse_known_args
    stop_index = consume_positionals(start_index)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1898, in consume_positionals
    take_action(action, args)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/argparse.py", line 1807, in take_action
    action(self, namespace, argument_values, option_string)
  File "/Volumes/workspace/mercurial/mozilla-central/python/mach/mach/dispatcher.py", line 173, in __call__
    if handler.parser:
  File "/Volumes/workspace/mercurial/mozilla-central/python/mach/mach/decorators.py", line 77, in parser
    self._parser = self._parser()
  File "/Volumes/workspace/mercurial/mozilla-central/testing/web-platform/mach_commands.py", line 304, in create_parser_update
    from update import updatecommandline
  File "/Volumes/workspace/mercurial/mozilla-central/build/mach_bootstrap.py", line 327, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/Volumes/workspace/mercurial/mozilla-central/testing/web-platform/update/__init__.py", line 17, in <module>
    from wptrunner.update import setup_logging, WPTUpdate
  File "/Volumes/workspace/mercurial/mozilla-central/build/mach_bootstrap.py", line 327, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/Volumes/workspace/mercurial/mozilla-central/testing/web-platform/harness/wptrunner/update/__init__.py", line 10, in <module>
  File "/Volumes/workspace/mercurial/mozilla-central/build/mach_bootstrap.py", line 327, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
  File "/Volumes/workspace/mercurial/mozilla-central/testing/web-platform/harness/wptrunner/wptcommandline.py", line 12, in <module>
  File "/Volumes/workspace/mercurial/mozilla-central/build/mach_bootstrap.py", line 327, in __call__
    module = self._original_import(name, globals, locals, fromlist, level)
It works again after removing .pyc files under <m-c>/testing/web-platform/harness/wptrunner/. So close this bug as WORKSFORME.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Component: mach → web-platform-tests
Product: Core → Testing
You need to log in before you can comment on or make changes to this bug.