Closed Bug 1892448 Opened 2 years ago Closed 2 years ago

ModuleNotFoundError: No module named 'six.moves' when running ./mach

Categories

(Firefox Build System :: Mach Core, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: jrmuizel, Unassigned)

References

(Blocks 1 open bug)

Details

I just started getting this. I'm on macOS with Python 3.12.2

Blocks: 1714690

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.

Flags: needinfo?(jmuizelaar)
Severity: -- → S2
Priority: -- → P2

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'
Flags: needinfo?(jmuizelaar)

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.

Severity: S2 → S3
Priority: P2 → P3

Though, there is bug 1857492, which implies it was fixed? I'll try to reproduce myself.

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?

Flags: needinfo?(jmuizelaar)

I was actually on an old revision from August 2023. Sorry for the noise.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(jmuizelaar)
Resolution: --- → WONTFIX
Resolution: WONTFIX → INVALID
You need to log in before you can comment on or make changes to this bug.