-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Can't run the pytorch lightning program packaged with pyinstaller. #7918
Comments
If this is about missing |
Hello @rokm
log:
|
Like the error message is telling you, you need to ensure that source .py files are collected for packages that use |
hello @rokm , |
Maybe |
Hello @rokm code
spec
Thank you very much for your patience and I look forward to hearing from you, thank you again! |
You need to edit the spec, and then build using the .spec file instead of the .py file (otherwise the spec gets re-generated and rewritten). I.e., run PyInstaller as If you want to avoid using the spec file, you will need to create a custom hook for |
hello @rokm :
Forgive me if I'm not familiar with pyinstaller, this is taking up a lot of your time, I'm very sorry. Once again, thank you very much! |
You'd probably need:
|
hello @rokm In the original spec file, my data parameter is as follows
According to the method you taught me
How do I merge the original data with the data you provided me with? |
These are basic python lists, so |
Can we see the whole .spec? |
Already fixed my issue. I accidentally overwrote the datas array a couple of lines down in the specfile. Now the imports work and I only need to add the proper binaries to get it working. Thanks! |
Bug description
When using pyinstaller to package a program that contains pytorch lightning(pl), the resulting exe never runs. But after removing the relevant pl code from the program, the exe executes correctly. I think this may be due to the fact that pl requires some specific dependencies to be included. What do I need to package in the anaconda environment after utilizing pl?
What version are you seeing the problem on?
v1.9
How to reproduce the bug
Error messages and logs
pyinstaller packaged
dist
folder does not contain pytorch lightingEnvironment
python :3.8
torch:1.12.1+cu113
pytorch-lighting: 1.9.5
OS: Win10
More info
No response
The text was updated successfully, but these errors were encountered: