Lightning-AI / Lightning-AI/pytorch-lightning
Can't run the pytorch lightning program packaged with pyinstaller.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 31.4k
- Forks
- 3.8k
- Avg merge
- 6d 7h
- Merged PRs (30d)
- 6
Description
### 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
```python
# 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with myPytorchLightningDemo.py using `pyinstaller -F -w -y`, then inspect the generated dist output and capture the executable's full error. Compare packaging with and without the PyTorch Lightning code under Python 3.8, torch 1.12.1+cu113, and PyTorch Lightning 1.9.5 on Windows 10. Done means identifying the missing dependency or packaging requirement and documenting a working executable build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- build-system, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100