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
~/work>python3.4 curl.py http://mail.ru
Exception in callback StreamProtocol.connection_made(<_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>)
handle: <Handle StreamProtocol.connection_made(<_SelectorSocketTransport fd=7 read=polling write=<idle, bufsize=0>>)>
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/events.py", line 102, in _run
self._callback(*self._args)
File "/usr/local/lib/python3.4/dist-packages/aiohttp/parsers.py", line 251, in connection_made
transport, self, self.reader, self._loop)
File "/usr/lib/python3.4/asyncio/streams.py", line 254, in __init__
assert reader is None or isinstance(reader, StreamReader)
AssertionError
Traceback (most recent call last):
File "curl.py", line 26, in <module>
loop.run_until_complete(curl(sys.argv[1]))
File "/usr/lib/python3.4/asyncio/base_events.py", line 268, in run_until_complete
return future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 271, in result
raise self._exception
File "/usr/lib/python3.4/asyncio/tasks.py", line 247, in _step
result = next(coro)
File "curl.py", line 9, in curl
response = yield from aiohttp.request('GET', url)
File "/usr/local/lib/python3.4/dist-packages/aiohttp/client.py", line 107, in request
resp = req.send(conn.writer, conn.reader)
File "/usr/local/lib/python3.4/dist-packages/aiohttp/client.py", line 505, in send
request.send_headers()
File "/usr/local/lib/python3.4/dist-packages/aiohttp/protocol.py", line 649, in send_headers
self.transport.write(hdrs)
AttributeError: 'NoneType' object has no attribute 'write'
~/work>python3.4 -V
Python 3.4.1
The text was updated successfully, but these errors were encountered:
Python 3.4.1 has newer version of Tulip and the following changeset adds assertion raised above: http://hg.python.org/cpython/rev/bf1b0afe419b#l1.55
So for 3.4.1 the aiohttp.parsers.StreamParser should subclass acyncio.StreamReader
I could not run curl.py example.
The text was updated successfully, but these errors were encountered: