Posts: 1
Joined: Thu Jun 14, 2018 8:30 pm

aiocoap on rapberry pi error 97

Thu Jun 14, 2018 8:35 pm

Hello i am trying to run the from on a raspberry pi, the server runs on a local network. So i think i only need to put the ip adress of my server into the file and then run it. However i have this error :

Code: Select all

Traceback (most recent call last):
  File "", line 44, in <module>
  File "/usr/lib/python3.5/asyncio/", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/", line 239, in _step
    result = coro.send(None)
  File "", line 28, in main
    context = await Context.create_client_context()
  File "/home/pi/Downloads/aiocoap-master/aiocoap/", line 172, in create_client_context
    from .transports.udp6 import MessageInterfaceUDP6
  File "/home/pi/Downloads/aiocoap-master/aiocoap/transports/", line 73
    [Errno 97] Address family not supported by protocol    def __init__(self, sockaddr, *, pktinfo=None):
SyntaxError: invalid syntax
I tried to run, and on the same computer and it was working perfectly so if you have any solutions it would be great ! I think it's a problem of networking configuration on the pi but no clues about where does it comes from.

Return to “Troubleshooting”