frozzenfinger
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 client.PUT.py from https://github.com/chrysn/aiocoap 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 "clientPUT.py", line 44, in <module>
    asyncio.get_event_loop().run_until_complete(main())
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "clientPUT.py", line 28, in main
    context = await Context.create_client_context()
  File "/home/pi/Downloads/aiocoap-master/aiocoap/protocol.py", line 172, in create_client_context
    from .transports.udp6 import MessageInterfaceUDP6
  File "/home/pi/Downloads/aiocoap-master/aiocoap/transports/udp6.py", line 73
    [Errno 97] Address family not supported by protocol    def __init__(self, sockaddr, *, pktinfo=None):
            ^
SyntaxError: invalid syntax
I tried to run client.GET.py, server.py and client.PUT.py 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”

Who is online

Users browsing this forum: Kleinhirn, makario, StanSimmons and 15 guests