Skip to content
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. #18492

Open
laogonggong847 opened this issue Sep 6, 2023 · 3 comments
Open
Labels
3rd party Related to a 3rd-party bug Something isn't working help wanted Open to be worked on repro needed The issue is missing a reproducible example ver: 1.9.x

Comments

@laogonggong847
Copy link

laogonggong847 commented Sep 6, 2023

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

# myPytorchLightningDemo.py  is just a simple program, except that this program contains pl
pyinstaller -F -w -y myPytorchLightningDemo.py

Error messages and logs

pyinstaller packaged dist folder does not contain pytorch lighting

Environment

python :3.8
torch:1.12.1+cu113
pytorch-lighting: 1.9.5
OS: Win10

More info

No response

@laogonggong847 laogonggong847 added bug Something isn't working needs triage Waiting to be triaged by maintainers labels Sep 6, 2023
@awaelchli awaelchli added 3rd party Related to a 3rd-party and removed needs triage Waiting to be triaged by maintainers labels Sep 6, 2023
@Cameronwood611
Copy link

Having the same issue

@awaelchli awaelchli added the help wanted Open to be worked on label Nov 6, 2023
@awaelchli
Copy link
Contributor

This is unfortunately outside the expertise of our team. We will rely on the community to pick this up if something needs to be fixed in Lightning.

@Borda
Copy link
Member

Borda commented Nov 6, 2023

Having the same issue

Can you share some logs or fully reproducible example (you refer to myPytorchLightningDemo.py but it is not attached to the issue)

@awaelchli awaelchli added the repro needed The issue is missing a reproducible example label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party Related to a 3rd-party bug Something isn't working help wanted Open to be worked on repro needed The issue is missing a reproducible example ver: 1.9.x
Projects
None yet
Development

No branches or pull requests

5 participants
@Cameronwood611 @awaelchli @Borda @laogonggong847 and others