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

Async server does not run on Python 3.12 #177

Closed
bulletmark opened this issue Nov 7, 2023 · 1 comment
Closed

Async server does not run on Python 3.12 #177

bulletmark opened this issue Nov 7, 2023 · 1 comment

Comments

@bulletmark
Copy link
Contributor

Using a generic simple example:

import asyncio
from microdot_asyncio import Microdot

app = Microdot()

@app.route('/')
async def hello(request):
    print('Got a request')
    return dict(result='ok')

app.run(debug=True)

On Linux, under Python versions 3.11 and earlier this works fine but on Python 3.12 app.run() returns immediately and the program terminates.

I'm raising this issue for the record although after looking at it somewhat it may be a Python bug related to this issue.

@miguelgrinberg
Copy link
Owner

Thanks. I have put a workaround in place.

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

2 participants