-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Avoid overwriting the lightning_app entry point
#20041
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
Conversation
🌩️ Required checks status: Pending 🟡Groups summary🟢 pytorch_lightning: Azure GPU
These checks are required after the changes to 🟢 lightning_fabric: Azure GPU
These checks are required after the changes to 🟡 lightning: Store
These checks are required after the changes to 🟢 mypy
These checks are required after the changes to 🟡 install
These checks are required after the changes to Thank you for your contribution! 💜
|
ea253d0 to
65e6dea
Compare
What does this PR do?
If both lightning and lightning-app is installed, and in particular lightning is installed after lightning-app, then the entry point of the main
lightningoverwrites thelightning_appentry point. After that, running an app withlightning_app run app app.pyis no longer possible, resulting in this error:This PR avoids that by simply avoiding the redirection.
This was originally introduced in #19440 but I don't think it was intentional, and the removal should not be in conflict with that PR. We have redirection logic for the sdk anyway.
📚 Documentation preview 📚: https://pytorch-lightning--20041.org.readthedocs.build/en/20041/
cc @Borda @carmocca