[Calypso] IPv6 support

Dominik 'Rathann' Mierzejewski dominik at greysector.net
Sat Mar 21 03:44:44 PDT 2020


It looks like it's impossible to get calypso to listen on IPv6 sockets.
I get the following traceback if I set host to an IPv6 address:
Traceback (most recent call last):
  File "/usr/bin/calypso", line 147, in <module>
    run_server()
  File "/usr/bin/calypso", line 140, in run_server
    (options.host, options.port), calypso.CollectionHTTPHandler)
  File "/usr/lib/python3.7/site-packages/calypso/__init__.py", line 109, in __init__
    http_server.__init__(self, address, handler)
  File "/usr/lib64/python3.7/socketserver.py", line 452, in __init__
    self.server_bind()
  File "/usr/lib/python3.7/site-packages/calypso/__init__.py", line 119, in server_bind
    HTTPServer.server_bind(self)
  File "/usr/lib64/python3.7/http/server.py", line 137, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib64/python3.7/socketserver.py", line 466, in server_bind
    self.socket.bind(self.server_address)
socket.gaierror: [Errno -9] Address family for hostname not supported

It looks like it's related to https://bugs.python.org/issue24209, which
is fixed in python 3.8. I'm running python 3.7 :(.

Regards,
Dominik
-- 
Fedora   https://getfedora.org  |  RPM Fusion  http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
        -- from "Collected Sayings of Muad'Dib" by the Princess Irulan


More information about the Calypso mailing list