[Python-modules-team] Bug#873965: aiohttp: C extension is broken
Matthias Urlichs
matthias at urlichs.de
Fri Sep 1 16:25:36 UTC 2017
Package: python3-aiohttp
Version: 2.2.3-1
Severity: important
File: aiohttp
I was unable to get the supplied compiled parser to work.
$ /usr/bin/py.test-3 -sxv tests/
tests/test_client_functional.py::test_keepalive_two_requests_success[pyloop] Error handling request
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/aiohttp/web_protocol.py", line 278, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 274, in aiohttp._http_parser.HttpParser.feed_data (aiohttp/_http_parser.c:4364)
raise ex
File "aiohttp/_http_parser.pyx", line 334, in aiohttp._http_parser.cb_on_url (aiohttp/_http_parser.c:5381)
pyparser._url = _parse_url(at[:length], length)
File "aiohttp/_http_parser.pyx", line 544, in aiohttp._http_parser._parse_url (aiohttp/_http_parser.c:8777)
return URL(schema, host, port, path, query, fragment, userinfo)
TypeError: __new__() takes from 1 to 2 positional arguments but 8 were given
A test run with either PYTHONPATH=. or AIOHTTP_NO_EXTENSIONS=1 worked.
This applies to both Python 3.5 and 3.6.
-- System Information:
Debian Release: 9.1
APT prefers stable
APT policy: (700, 'stable'), (650, 'oldstable'), (600, 'unstable'), (550, 'experimental'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf
Kernel: Linux 4.11.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python3-aiohttp depends on:
ii libc6 2.24-11+deb9u1
ii python3 3.5.3-3
ii python3-async-timeout 1.1.0-1
ii python3-chardet 2.3.0-2
ii python3-multidict 2.1.4-1
ii python3-yarl 0.8.1-1
python3-aiohttp recommends no packages.
python3-aiohttp suggests no packages.
-- no debconf information
More information about the Python-modules-team
mailing list