AttributeError: module 'demo' has no attribute 'app' #344
Replies: 2 comments
-
Hope you didnt made any changes to your local aioquic project files root@ubuntu:~/aioquic# python examples/http3_server.py --certificate tests/ssl_cert.pem --private-key tests/ssl_key.pem -v Hope you are getting same above error . if so make sure you have async def app(scope: Scope, receive: Receive, send: Send) -> None: in demo.py Hope this helps |
Beta Was this translation helpful? Give feedback.
-
It could happen if you are not performing the http3_server.py in the example folder. As long as you moved the demo.py with your new destination, you should not see the same error anymore. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to run the http3_server.py in my local machine, but I got this error:
application = getattr(module, attr_str)
AttributeError: module 'demo' has no attribute 'app'
I really have the server and demo script in my computer. What can I do to resolve this error?
Beta Was this translation helpful? Give feedback.
All reactions