irc3
irc3 copied to clipboard
getaddrinfo for res in _socket.getaddrinfo error
Using dcc_send_and_get.py in examples with python 3.7.2 I get the following error. Works fine in 3.6.0.
INFO irc3d Started
INFO irc3.receiver sender is offering dcc_send_and_getb.py
ERROR asyncio Exception in callback DCCManager.created(<DCCGet with [email protected]>)(<Task finishe...info failed')>)
handle: <Handle DCCManager.created(<DCCGet with [email protected]>)(<Task finishe...info failed')>)>
Traceback (most recent call last):
File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\site-packages\irc3\dcc\manager.py", line 58, in created
transport, protocol = future.result()
File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\asyncio\base_events.py", line 910, in create_connection
type=socket.SOCK_STREAM, proto=proto, flags=flags, loop=self)
File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\asyncio\base_events.py", line 1279, in _ensure_resolved
proto=proto, flags=flags)
File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\asyncio\base_events.py", line 789, in getaddrinfo
None, getaddr_func, host, port, family, type, proto, flags)
File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\SalamanderSandwich\AppData\Local\Programs\Python\Python37-32\lib\socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed
Not sure it's really related to irc3. Looks like it raise deep in asyncio.
And btw, are you sure you don't have a firewall or something ?
Also tests pass with 3.7 https://travis-ci.org/gawel/irc3/jobs/499987669 And, like other modules, the dcc part is well covered
Weird issue
Also tested locally:
$ .tox/py37/bin/python -V
Python 3.7.2+
$ .tox/py37/bin/python examples/dcc_send_and_get.py
INFO irc3d Started
INFO irc3.receiver sender is offering dcc_send_and_get.py
INFO irc3.sender file sent to receiver
INFO irc3.receiver file received from sender
Could this relate to ipv6?
Maybe. But the current traceback to show some 127.0.0.1
Hmm pusseling, I know there is an issue if you try using dcc if you have connected with ipv6 to an ircd server.
Maybe it's possible to reproduce with irc3d (never tried to run it with ipv6)