You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hook is incorrect; either you do collect_all(x) (which internally calls collect_data_files(x), collect_submodules(x), and collect_dynamic_libraries(x)or you manually specify hiddenimports and partially collect datas. Even so, you should be apending to datas, not overwriting it with each call. And collect_data_files() expects package name, not names of classes from your modules...
--runtime-hook "hook-configuration.py" your hook is not a run-time one, so this is also incorrect.
pkg_resources.DistributionNotFound: The 'PyInstaller' distribution was not found and is required by the application
The application should not require PyInstaller anywhere, so either this is caused by incorrect --runtime-hook (see point 2) or your application is importing PyInstaller somewhere, which it should not.
I'm trying to get an exe file from a python software composed by multiple python scripts.
Here my env setup:
Folder hierarchy:
Before to write the question I've read the issue #4651 and I wrote my hook file called `hook-configuration.py., with the following content:
The entrypoint of the program is a script which has the following import:
I also tried to launch pyInstaller using -F and --debug=all arguments (found it in #4809) but it doesn't work.
Stacktrace / full error message
The text was updated successfully, but these errors were encountered: