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
Hi,
I can install aiocoap without problem with the setup file but when I'm trying to test it I got 28 errors. All are the same. The error come from server.py or by some others who use server.py.
The end of the traceback is everytime the same :
File "/usr/lib64/python3.4/asyncio/base_events.py", line 521, in create_datagram_endpoint
transport = self._make_datagram_transport(sock, protocol, r_addr)
File "/home/H/Documents/stage/aiocoap/aiocoap/util/asyncio.py", line 105, in _new_mdt return
RecvmsgSelectorDatagramTransport(self, sock, protocol, address, waiter, extra)
File "/home/H/Documents/stage/aiocoap/aiocoap/util/asyncio.py", line 32, in __init__
super(RecvmsgSelectorDatagramTransport, self).__init__(*args, **kwargs)
TypeError: __init__() takes from 4 to 6 positional arguments but 7 were given
I'm using python 3.4.1. Asyncio and link_header are installed.
I'm using fedora21. Have you an idea on what's happening ?
The text was updated successfully, but these errors were encountered:
Uh, it seems that no hack ever goes unpunished... the relevant code section monkey-patches itself into asyncio in order to do receive UDP data not only using recvfrom but using recvmsg, and in doing so calls some internal Python / asyncio methods that are not really supposed to be called from outside.
I'll give it a try with python 3.4 and try to come up with a fix; in the meantime, use a version from before March 24th, or use python 3.5.
Thank you for your answer.
To fix it simply (radically) I changed my OS by an Ubuntu(16) with python3.5 and it works very well.
I confirm that work with an older version of aiocoap.
TY for your hard work, this package is really helpful to work on a server COAP/HTTP with asyncio, aiohttp and aiocoap !
chrysn
changed the title
28 tests failed (with setup.py)
28 tests failed with python 3.4.1
Jun 7, 2016
Hi,
I can install aiocoap without problem with the setup file but when I'm trying to test it I got 28 errors. All are the same. The error come from server.py or by some others who use server.py.
The end of the traceback is everytime the same :
I'm using python 3.4.1. Asyncio and link_header are installed.
I'm using fedora21. Have you an idea on what's happening ?
The text was updated successfully, but these errors were encountered: