pyqtdeploy reports: AttributeError: module 'importlib' has no attribute 'util'

Frans F├╝rst frans.fuerst at
Wed Dec 2 16:17:12 GMT 2020

At least with Python v3.7.3 and 3.9.0 and on Fedora 33 and Debian 10 system running inside pyqtdeploy-3.1.0/demo gives me:

bash-5.0$ python3
Traceback (most recent call last):
File "/usr/local/bin/pyqtdeploy-sysroot", line 8, in <module>
File "/usr/local/lib/python3.9/site-packages/pyqtdeploy/", line 91, in main
specification = SysrootSpecification(specification_file)
File "/usr/local/lib/python3.9/site-packages/pyqtdeploy/sysroot/", line 87, in __init__
plugin = self._plugin_from_file(name, default_plugin_dir)
File "/usr/local/lib/python3.9/site-packages/pyqtdeploy/sysroot/", line 163, in _plugin_from_file
spec = importlib.util.spec_from_file_location(name, plugin_file)
AttributeError: module 'importlib' has no attribute 'util'

I can easily fix it by patching /usr/local/lib/python3.7/dist-packages/pyqtdeploy/sysroot/ directly after installing pyqtdeploy:

awk '/import importlib/{print "import importlib.util"}1' "$FILE" > "${FILE}.temp"
mv "${FILE}.temp" "$FILE"

Is this a bug in pyqtdeploy or do I do anything wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the PyQt mailing list