We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a737d26 commit 073f9d2Copy full SHA for 073f9d2
1 file changed
tools/run_examples.py
@@ -188,8 +188,12 @@ def check_installed_packages():
188
}
189
for package in packages:
190
try:
191
- importlib.import_module(package)
192
- packages[package] = True
+ if package == "PyQt5":
+ # Strange issue on Mac, PyQt5 is an empty built-in module
193
+ from PyQt5 import QtGui
194
+ else:
195
+ importlib.import_module(package)
196
+ packages[package] = True
197
except ImportError:
198
packages[package] = False
199
packages["gi"] = check_gi_installed()
0 commit comments