Lightning-AI/pytorch-lightning

Can't run the pytorch lightning program packaged with pyinstaller.

Open

#18.492 geöffnet am 6. Sept. 2023

Auf GitHub ansehen
 (3 Kommentare) (4 Reaktionen) (0 zugewiesene Personen)Python (3.233 Forks)batch import
3rd partybughelp wantedrepro neededver: 1.9.x

Repository-Metriken

Stars
 (26.687 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 9T 15h) (3 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide