Closed Bug 1675014 Opened 4 years ago Closed 4 years ago

node artifact installation fails on macOS with Python 3.9

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1674162

People

(Reporter: takenspc, Unassigned)

Details

mach bootstrap fails on macOS with Python 3.9:

Error running mach:

    ['artifact', 'toolchain', '--bootstrap', '--from-build', 'macosx64-node']

Note: mach bootstrap installs watchman via homebrew and watchman requires python@3.9 so that Python 3.9 is used as system python in some conditions.

mach artifact toolchain --bootstrap --from-build macosx64-node uses plistlib.readPlist which has been deprecated since Python 3.4 and removed in Python 3.9 so that the command fails.

https://docs.python.org/3.8/library/plistlib.html#plistlib.readPlist

plistlib.readPlist(pathOrFile)

Deprecated since version 3.4: Use load() instead.

https://docs.python.org/3.9/library/plistlib.html

Changed in version 3.9: Old API removed.

It is easy to migrate to new API plistlib.load which is introduced in Python 3.4 though I'm not sure whether the file in question need to be python 2 compatible or not.

https://searchfox.org/mozilla-central/rev/16d30bafd4e5276d6d3c632fb52a6c71e739cc44/testing/mozbase/mozinstall/mozinstall/mozinstall.py#71-79

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.