From 53b0fa827d37f3f7127470371d12d2a1c917e396 Mon Sep 17 00:00:00 2001 From: season Date: Thu, 30 Nov 2023 00:45:51 +0800 Subject: [PATCH] Fix build script error.because starting with Python 3.9, the util module was moved from importlib to a separate top-level module called importlib.util. Therefore, if you are using Python 3.9 or later and you receive an AttributeError stating that module 'importlib' has no attribute 'util', it is likely due to a compatibility issue with your code. You can fix this issue by updating your code to import importlib.util directly (#30796) --- python/mach/mach/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mach/mach/main.py b/python/mach/mach/main.py index 9b459aa53c0..db518d8a151 100644 --- a/python/mach/mach/main.py +++ b/python/mach/mach/main.py @@ -10,7 +10,7 @@ from __future__ import absolute_import, print_function, unicode_literals import argparse import codecs import errno -import importlib +import importlib.util import logging import os import sys