gaierror: [Errno -2] Name or service not known
File "Pyro5/socketutil.py", line 88, in get_ip_address
return getaddr(config.PREFER_IP_VERSION) if version is None else getaddr(version)
File "Pyro5/socketutil.py", line 80, in getaddr
ip = socket.getaddrinfo(hostname or socket.gethostname(), 80, family, socket.SOCK_STREAM, socket.SOL_TCP)[0][4][0]
File "socket.py", line 752, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
gaierror: [Errno -2] Name or service not known
File "Pyro5/client.py", line 282, in connect_and_handshake
sslContext=sslContext)
File "Pyro5/socketutil.py", line 242, in create_socket
addr = get_ip_address(connect[0])
File "Pyro5/socketutil.py", line 92, in get_ip_address
return getaddr(0)
File "Pyro5/socketutil.py", line 80, in getaddr
ip = socket.getaddrinfo(hostname or socket.gethostname(), 80, family, socket.SOCK_STREAM, socket.SOL_TCP)[0][4][0]
File "socket.py", line 752, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
CommunicationError: cannot connect to ('prodml.identrics.net', 9090): [Errno -2] Name or service not known
File "Pyro5/core.py", line 281, in locate_ns
proxy._pyroBind()
File "Pyro5/client.py", line 182, in _pyroBind
return self.__pyroCreateConnection(True)
File "Pyro5/client.py", line 342, in __pyroCreateConnection
connect_and_handshake(conn)
File "Pyro5/client.py", line 304, in connect_and_handshake
raise errors.CommunicationError(err) from x
NamingError: Failed to locate the nameserver
File "init_ns_state.py", line 30, in <module>
main()
File "init_ns_state.py", line 18, in main
with Pyro5.core.locate_ns(settings.ip_addr) as ns:
File "Pyro5/core.py", line 285, in locate_ns
raise errors.NamingError("Failed to locate the nameserver") from x