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

Fails on start? #89

Closed
rusenask opened this issue Jul 22, 2022 · 3 comments
Closed

Fails on start? #89

rusenask opened this issue Jul 22, 2022 · 3 comments
Assignees

Comments

@rusenask
Copy link

[flow] 2022-07-22T13:36:09.122Z AttributeError: module 'lightning.app.frontend' has no attribute 'web'
[flow] 2022-07-22T13:36:09.154Z ERROR: Found an exception when loading your application from app.py. Please, resolve it to run your app.
[flow] 2022-07-22T13:36:09.154Z Traceback (most recent call last):
[flow] 2022-07-22T13:36:09.154Z   File "app.py", line 145, in <module>
[flow] 2022-07-22T13:36:09.154Z     app = L.LightningApp(
[flow] 2022-07-22T13:36:09.154Z   File "/content/venv/lib/python3.8/site-packages/lightning_app/core/app.py", line 102, in __init__
[flow] 2022-07-22T13:36:09.154Z     self._update_layout()
[flow] 2022-07-22T13:36:09.154Z   File "/content/venv/lib/python3.8/site-packages/lightning_app/core/app.py", line 415, in _update_layout
[flow] 2022-07-22T13:36:09.154Z     layout = _collect_layout(self, component)
[flow] 2022-07-22T13:36:09.154Z   File "/content/venv/lib/python3.8/site-packages/lightning_app/utilities/layout.py", line 30, in _collect_layout
[flow] 2022-07-22T13:36:09.154Z     layout = flow.configure_layout()
[flow] 2022-07-22T13:36:09.154Z   File "app.py", line 27, in configure_layout
[flow] 2022-07-22T13:36:09.154Z     return frontend.web.StaticWebFrontend(serve_dir=self.serve_dir)
[flow] 2022-07-22T13:36:09.154Z AttributeError: module 'lightning.app.frontend' has no attribute 'web'
[flow] 2022-07-22T13:36:09.247Z INFO: Found dead components ['Flow', 'Server', 'root.notebook_viewer'], Exiting execution!!!

image

version v.0.0.1

@Nachimak28
Copy link

Nachimak28 commented Jul 26, 2022

I tried doing this on the lightning cloud and faced the same issue. This seems to be an error due to an older code version deployed on the lightning cloud.

I tried doing it locally instead and it works by cloning this repo at its latest state and then running it.
You could try cloning the repo on your machine, and running the command

git clone https://github.com/Lightning-AI/LAI-research-template-App.git
cd LAI-research-template-App
lightning run app app.py --cloud

# this will ask for the lightning cloud credentials which could be obtained from the steps displayed while running the above command.

@aniketmaurya aniketmaurya self-assigned this Jul 26, 2022
@aniketmaurya
Copy link
Contributor

aniketmaurya commented Jul 26, 2022

@zippeurfou, we want to update the app gallery with the latest sha to avoid this error on clone and run.

@aniketmaurya
Copy link
Contributor

Closing this since the SHA is updated, and both Launch and clone & run buttons are working correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants