ModuleNotFoundError: No module named 'six.moves' when running ./mach
Categories
(Firefox Build System :: Mach Core, defect, P3)
Tracking
(Not tracked)
People
(Reporter: jrmuizel, Unassigned)
References
(Blocks 1 open bug)
Details
I just started getting this. I'm on macOS with Python 3.12.2
Comment 1•2 years ago
|
||
Can you share the log? I think :Serge landed some work removing six usages recently, so that may be related, but it'd be a lot easier to track down with some error messages.
Updated•2 years ago
|
| Reporter | ||
Comment 2•2 years ago
|
||
Sorry I should've included this in the original report:
./mach help
Traceback (most recent call last):
File "/Users/jrmuizel/source/gecko-inbound/./mach", line 125, in <module>
main(sys.argv[1:])
File "/Users/jrmuizel/source/gecko-inbound/./mach", line 117, in main
mach = check_and_get_mach(os.path.dirname(os.path.realpath(__file__)), args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jrmuizel/source/gecko-inbound/./mach", line 37, in check_and_get_mach
return load_mach(dir_path, mach_path, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jrmuizel/source/gecko-inbound/./mach", line 23, in load_mach
return mach_initialize.initialize(dir_path, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jrmuizel/source/gecko-inbound/build/mach_initialize.py", line 172, in initialize
import mach.main
File "/Users/jrmuizel/source/gecko-inbound/python/mach/mach/main.py", line 27, in <module>
from .config import ConfigSettings
File "/Users/jrmuizel/source/gecko-inbound/python/mach/mach/config.py", line 26, in <module>
from six.moves.configparser import NoSectionError, RawConfigParser
ModuleNotFoundError: No module named 'six.moves'
Comment 3•2 years ago
|
||
I was thinking of D207606.
I misread this though, this is a Python 3.12+ issue, so not caused by any removal (moreso, not all removals being done yet). The blocker on bug 1714690 is correct.
Updated•2 years ago
|
Comment 4•2 years ago
|
||
Though, there is bug 1857492, which implies it was fixed? I'll try to reproduce myself.
Comment 5•2 years ago
|
||
What revision are you on?
I can't reproduce this on current central on Windows with Python 3.12.2.
Does the directory <mozilla-central-root>/third_party/python/six/ exist?
| Reporter | ||
Comment 6•2 years ago
|
||
I was actually on an old revision from August 2023. Sorry for the noise.
| Reporter | ||
Updated•2 years ago
|
Description
•