From: Dmitry Shachnev Date: Sat, 7 Jan 2023 12:46:57 +0000 (+0400) Subject: Fix AttributeError: module 'importlib' has no attribute 'machinery' X-Git-Tag: archive/raspbian/5.15.8-2+rpi1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8e12b03cea16dfb7cde6514323f46a8eb3cd31b9;p=pyside2.git Fix AttributeError: module 'importlib' has no attribute 'machinery' Origin: https://github.com/archlinux/svntogit-packages/blob/packages/pyside2/trunk/fix-build.patch Gbp-Pq: Name importlib-machinery.patch --- diff --git a/sources/shiboken2/libshiboken/embed/signature_bootstrap.py b/sources/shiboken2/libshiboken/embed/signature_bootstrap.py index 9028642..c70abc5 100644 --- a/sources/shiboken2/libshiboken/embed/signature_bootstrap.py +++ b/sources/shiboken2/libshiboken/embed/signature_bootstrap.py @@ -211,7 +211,7 @@ class EmbeddableZipImporter(object): return self if self._mod2path.get(fullname) else None def load_module(self, fullname): - import importlib + import importlib.machinery import sys filename = self._mod2path.get(fullname)