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

fastagency run fails for mesop apps on Mac #362

Open
davorinrusevljan opened this issue Oct 10, 2024 · 2 comments
Open

fastagency run fails for mesop apps on Mac #362

davorinrusevljan opened this issue Oct 10, 2024 · 2 comments
Assignees

Comments

@davorinrusevljan
Copy link
Collaborator

When running on Mac, starting mesop with:

fastagency run main_mesop.py

fails with following error:

**Mesop Developer Error:** No page has been registered. Read the [page docs](https://google.github.io/mesop/api/page/) to configure a page.

If you configured a page, then there was an exception in your code before the page was registered. Check your logs for more details.

each time web server is accessed.

Suspiciously hot reload gets "auto triggered" when application starts. IE no manual saving of source files happens:

Running server on: http://localhost:32123
 * Serving Flask app 'mesop.server.server'
 * Debug mode: off
Watching new Python module: /private/var/folders/6n/3rjds7v52cd83wqkd565db0h0000gn/T/tmpl4r7lbpa/main.py
Hot reload #1: starting...
Hot reload #1: finished!
@ChristophRaab
Copy link

Hi,
i got the same error trying out the getting startet error on mac air m2.
It seems that fastagency run has this problem using gunicorn main:app works. However, i needed to go to version 2.0 because the example on the gettting-started page was with 0.2 and not with latest.

@davorinrusevljan
Copy link
Collaborator Author

Yes, as workaround you can start it with gunicorn. We have this bug on radar, but maybe it would wait until we get FastAPI support out of the door.

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