Traceback (most recent call last):
File “/usr/local/python-3.7.5/lib/python3.7/site-packages/mindspore/_extends/remote/kernel_build_server_gpu.py”, line 87, in
messager.run()
File “/usr/local/python-3.7.5/lib/python3.7/site-packages/mindspore/_extends/remote/kernel_build_server.py”, line 119, in run
self.loop()
File “/usr/local/python-3.7.5/lib/python3.7/site-packages/mindspore/_extends/remote/kernel_build_server.py”, line 116, in loop
self.handle()
File “/usr/local/python-3.7.5/lib/python3.7/site-packages/mindspore/_extends/remote/kernel_build_server_gpu.py”, line 56, in handle
res = self.akg_builder.compile()
File “/usr/local/python-3.7.5/lib/python3.7/site-packages/mindspore/_extends/remote/kernel_build_server.py”, line 33, in compile
return self.akg_builder.compile()
File “/usr/local/python-3.7.5/lib/python3.7/site-packages/mindspore/_extends/parallel_compile/akg_compiler/akg_process.py”, line 128, in compile
res.get(timeout=self.wait_time)
File “/usr/local/python-3.7.5/lib/python3.7/multiprocessing/pool.py”, line 657, in get
raise self._value
AttributeError: module ‘importlib’ has no attribute ‘util’
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. For example:
from importlib.util import find_spec
If you are using an earlier version of Python, it is possible that the importlib
module does not have a util
attribute at all, in which case you should check your code for any typos or misspellings.