pyqtgraph hook no longer finds hidden imports since PyInstaller 5.2
Closed this issue · 0 comments
nicoddemus commented
Hi,
When an application that uses pyqtgraph
is frozen with PyInstaller 5.2, at runtime we get errors like:
File "pyqtgraph\graphicsItems\ViewBox\ViewBoxMenu.py", line 6, in <module>
File "importlib\__init__.py", line 126, in import_module
ModuleNotFoundError: No module named 'pyqtgraph.graphicsItems.ViewBox.axisCtrlTemplate_pyqt5'
The hook-pyqtgraph
file contains code to dynamically load some files:
I added some debugging code to it and noticed that hiddenimports
is []
, so digging the code history I could trace the problem to this commit:
pyinstaller/pyinstaller@17aa452
I will open a PR to fix this shortly. 👍