-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing imports during packaging with PyInstaller 5.13 and pyinstaller-hooks-contrib 2023.12 #686
Comments
In the failed run, the I cannot reproduce the problem when doing a I do note, however, that you are installing |
Thanks @rokm for the detailed investigation! The issue with I created an issue and PR on conda-forge/pyinstaller-hooks-contrib-feedstock#40 to add the |
Describe the bug
Using PyInstaller 5.13 and the latest pyinstaller-hooks-contrib 2023.12 release results in
ModuleNotFoundError: No module named 'h5py.defs'
when running our tests on a PyInstaller executable (NeurodataWithoutBorders/nwb-guide#559). Tests were passing with version 2023.11 using the same version of PyInstaller 5.13. Pinning pyinstaller-hooks-contrib to the earlier 2023.11 fixes the issue. Upgrading PyInstaller to the latest 6.3.0 also fixes the issue. So there seems to be an incompatibility between PyInstaller 5.13 and the latest pyinstaller-hooks-contrib 2023.12. I have not tested other versions beyond those mentioned.The h5py hooks should have been loaded from https://github.com/pyinstaller/pyinstaller-hooks-contrib/blob/master/src/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-h5py.py but the logs indicate that they were not. This PR #677 was merged in 2023.12 . Since it relates to how pyinstaller finds hooks, I wonder if this caused the issue.
Since I was able to resolve this issue by upgrading to the latest version of PyInstaller, I have no requests. I'm creating this ticket to let you all know about the incompatibility and inform anyone else who might encounter the same issue. Feel free to close this.
To Reproduce
Sorry, I am not a pyinstaller expert and creating a MWE would take some time...
Expected behavior
Expected no change in pyinstaller behavior between pyinstaller-hooks-contrib = 2023.11 and pyinstaller-hooks-contrib = 2023.12.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
pyinstaller-hooks-contrib
: 2023.12Additional context
The text was updated successfully, but these errors were encountered: