You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An exception is raised due to an inability to import InvalidURL. Stack trace:
Traceback (most recent call last):
File "asyncio.py", line 1, in <module>
from aiohttp import web
File "/usr/local/lib/python3.5/site-packages/aiohttp/__init__.py", line 7, in <module>
from .protocol import * # noqa
File "/usr/local/lib/python3.5/site-packages/aiohttp/protocol.py", line 14, in <module>
from . import errors, hdrs
File "/usr/local/lib/python3.5/site-packages/aiohttp/errors.py", line 3, in <module>
from asyncio import TimeoutError
File "/code/asyncio.py", line 1, in <module>
from aiohttp import web
File "/usr/local/lib/python3.5/site-packages/aiohttp/web.py", line 7, in <module>
from . import web_reqrep
File "/usr/local/lib/python3.5/site-packages/aiohttp/web_reqrep.py", line 20, in <module>
from .helpers import reify
File "/usr/local/lib/python3.5/site-packages/aiohttp/helpers.py", line 15, in <module>
from .errors import InvalidURL
ImportError: cannot import name 'InvalidURL'
It appears this is a circular import, so it's not surprising that it fails, but then I wonder how it works for other people? I even tried going back to older versions of aiohttp and get the same result. This implies EBKAC, but I'm not sure.
Well, aren't I red in the face. I knew there must be some EBKAC somewhere in here, and it's quite obvious once you point it out. Thanks, sorry for the dumb question!
Long story short
When following the simple example tutorial to run a server both in the docs (http://aiohttp.readthedocs.org/en/stable/web.html#run-a-simple-web-server) and on the site, the server fails to launch.
Expected behaviour
A running server.
Actual behaviour
An exception is raised due to an inability to import InvalidURL. Stack trace:
It appears this is a circular import, so it's not surprising that it fails, but then I wonder how it works for other people? I even tried going back to older versions of aiohttp and get the same result. This implies EBKAC, but I'm not sure.
Steps to reproduce
Follow the simple example here: https://github.com/KeepSafe/aiohttp#server
Try and run the script from there.
Your environment
Python 3.5.1 from the official Python Docker Image. (https://github.com/docker-library/python/blob/764d302a21bd2442c2808bc802c95193b2cb8eea/3.5/Dockerfile)
pip install aiohttp (got version 0.21.5)
Thanks!
The text was updated successfully, but these errors were encountered: