pytorch-lightning icon indicating copy to clipboard operation
pytorch-lightning copied to clipboard

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

Open laogonggong847 opened this issue 1 year ago • 3 comments

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 avatar Sep 06 '23 07:09 laogonggong847

Having the same issue

Cameronwood611 avatar Oct 17 '23 19:10 Cameronwood611

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.

awaelchli avatar Nov 06 '23 03:11 awaelchli

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)

Borda avatar Nov 06 '23 08:11 Borda