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
While upgrading aiohttp to 3.9.0, aiohttp-middlewares has errors:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/execute_web_agent/web_agent/main.py", line 9, in <module>
from aiohttp_middlewares import cors_middleware
File "/usr/local/lib/python3.10/site-packages/aiohttp_middlewares/__init__.py", line 14, in <module>
from aiohttp_middlewares.cors import cors_middleware
File "/usr/local/lib/python3.10/site-packages/aiohttp_middlewares/cors.py", line 122, in <module>
from aiohttp_middlewares.annotations import (
File "/usr/local/lib/python3.10/site-packages/aiohttp_middlewares/annotations.py", line 22, in <module>
from aiohttp.web_middlewares import _Middleware as Middleware
ImportError: cannot import name '_Middleware' from 'aiohttp.web_middlewares' (/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py)
Hi! Thanks for your report! I’ve seen it was already fixed in #185, so my plan is to merge it to main and release new aiohttp-middlewares version later today.
Hi,
While upgrading
aiohttp
to3.9.0
,aiohttp-middlewares
has errors:It seems aiohttp removes
_Middleware
.https://github.com/aio-libs/aiohttp/blob/master/aiohttp/web_middlewares.py
The text was updated successfully, but these errors were encountered: