Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

28 tests failed with python 3.4.1 #36

Closed
Alpam opened this issue May 27, 2016 · 2 comments
Closed

28 tests failed with python 3.4.1 #36

Alpam opened this issue May 27, 2016 · 2 comments

Comments

@Alpam
Copy link

Alpam commented May 27, 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 :

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 ?

@chrysn
Copy link
Owner

chrysn commented Jun 7, 2016

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.

@Alpam
Copy link
Author

Alpam commented Jun 7, 2016

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 chrysn changed the title 28 tests failed (with setup.py) 28 tests failed with python 3.4.1 Jun 7, 2016
@chrysn chrysn closed this as completed in 99955df Jun 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants