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

NameError: name 'Callable' is not defined #16

Open
DasElias opened this issue Dec 14, 2021 · 0 comments
Open

NameError: name 'Callable' is not defined #16

DasElias opened this issue Dec 14, 2021 · 0 comments

Comments

@DasElias
Copy link

I run a file with nothing but the following import in it:

from Aeros import WebServer

and run the file with python3 main.py. My python version is 3.7.9. Unfortunately, I get the following error:

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    from Aeros import WebServer
  File "C:\Users\Elias\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\Aeros\__init__.py", line 1, in <module>
    from .WebServer import *
  File "C:\Users\Elias\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\Aeros\WebServer.py", line 11, in <module>
    from .patches.quart.app import Quart
  File "C:\Users\Elias\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\Aeros\patches\quart\__init__.py", line 1, in <module>
    from .app import Quart
  File "C:\Users\Elias\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\Aeros\patches\quart\app.py", line 2, in <module>
    from .asgi import ASGIHTTPConnection
  File "C:\Users\Elias\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\Aeros\patches\quart\asgi.py", line 5, in <module>
    class ASGIHTTPConnection(Original):
  File "C:\Users\Elias\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\Aeros\patches\quart\asgi.py", line 7, in ASGIHTTPConnection
    async def handle_request(self, request: Request, send: Callable) -> None:
NameError: name 'Callable' is not defined
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

1 participant