Closed Bug 911340 Opened 11 years ago Closed 11 years ago

Running mochitests via make does not work on Linux (but does on Mac)

Categories

(Firefox Build System :: General, defect)

x86
macOS
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 907476

People

(Reporter: bzbarsky, Unassigned)

References

(Blocks 1 open bug)

Details

STEPS TO REPRODUCE:

1)  Pull revision 0b408255c923 of mozilla-inbound.
2)  make -C ../obj-firefox mochitest-plain

EXPECTED RESULTS: Run the tests

ACTUAL RESULTS: 

Traceback (most recent call last):
  File "_tests/testing/mochitest/runtests.py", line 23, in <module>
    from automation import Automation
  File "/home/bzbarsky/mozilla/vanilla/obj-firefox/_tests/testing/mochitest/automation.py", line 34, in <module>
    from mozprofile import Profile, Preferences
ImportError: cannot import name Preferences

I get the same if I try to run runTests.py manually with the virtualenv python.  running mach from inside the objdir, on the other hand, works correctly.

I see the problem on Linux, but on Mac everything works fine.
Is there a mozprofile installed in your system Python? You can just try running python and "import mozprofile".
Seems to be installed on both Mac and Linux, yes (though on Mac importing the module fails because there is no "manifestparser" module installed in the system python).
Blocks: 912114
Dup of bug 907476?
Quacks like a dupe.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.