Hi,

在 2021-11-27星期六的 23:23 -0500,Sandro Tosi写道:
> > root@zion:/# python3.9 -c "import aiohttp"
> > Traceback (most recent call last):
> >   File "<string>", line 1, in <module>
> >   File "/usr/lib/python3/dist-packages/aiohttp/__init__.py", line 6, in
> > <module>
> >     from .client import (
> >   File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 35, in
> > <module>
> >     from . import hdrs, http, payload
> >   File "/usr/lib/python3/dist-packages/aiohttp/http.py", line 7, in
> > <module>
> >     from .http_parser import (
> >   File "/usr/lib/python3/dist-packages/aiohttp/http_parser.py", line 15,
> > in <module>
> >     from .helpers import NO_EXTENSIONS, BaseTimerContext
> >   File "/usr/lib/python3/dist-packages/aiohttp/helpers.py", line 667, in
> > <module>
> >     class CeilTimeout(async_timeout.timeout):
> > TypeError: function() argument 'code' must be code, not str
> > 
> > 
> > root@zion:/# python3.10 -c "import aiohttp"
> > Traceback (most recent call last):
> >   File "<string>", line 1, in <module>
> >   File "/usr/lib/python3/dist-packages/aiohttp/__init__.py", line 6, in
> > <module>
> >     from .client import (
> >   File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 35, in
> > <module>
> >     from . import hdrs, http, payload
> >   File "/usr/lib/python3/dist-packages/aiohttp/http.py", line 7, in
> > <module>
> >     from .http_parser import (
> >   File "/usr/lib/python3/dist-packages/aiohttp/http_parser.py", line 15,
> > in <module>
> >     from .helpers import NO_EXTENSIONS, BaseTimerContext
> >   File "/usr/lib/python3/dist-packages/aiohttp/helpers.py", line 667, in
> > <module>
> >     class CeilTimeout(async_timeout.timeout):
> > TypeError: function() argument 'code' must be code, not str
> 
> Boyuan,
> you caused this by uploading python-async-timeout 4.x
> 
> https://tracker.debian.org/news/1280914/accepted-python-async-timeout-401-1-source-into-unstable/
> 
> while aiohttp is incompatible with it.
> 
> Apparently the latest version of aiohttp supports async-timeout > 4.0
> 
> https://github.com/aio-libs/aiohttp/blob/v3.8.1/setup.cfg#L54
> 
> are you going to handle this upgrade?

Thanks for the info and sorry for the breakage; obviously I should have
uploaded it into Experimental first. I am looking into fixing the issue
(ideally through upgrade of all related packages) but this may take some time.
If you already have a solution, it would be even better.

Thanks,
Boyuan Yang

Reply via email to