You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a multi home nic computer, get_my_ip() is failing to use socket connection to nameserver to retrieve the external ip address to use. The code is proceeding to the default case to use hostname and to look up by ip address, which is currently resolving to virtualbox ethernet adapter that is not reachable from the dispatcher.
Specifically, the line ns = Pyro4.naming.locateNS()
is throwing exception module 'Pyro4' has no attribute 'naming'
when using Pyro4 version 4.62, thus get_my_ip() is defaulting to use result = socket.gethostbyname(socket.gethostname())
The solution is to add import Pyro4.naming
The text was updated successfully, but these errors were encountered:
menshikh-iv
changed the title
Pyro4.naming excpetion
Pyro4.naming exception in get_my_ipDec 11, 2017
On a multi home nic computer, get_my_ip() is failing to use socket connection to nameserver to retrieve the external ip address to use. The code is proceeding to the default case to use hostname and to look up by ip address, which is currently resolving to virtualbox ethernet adapter that is not reachable from the dispatcher.
Specifically, the line
ns = Pyro4.naming.locateNS()
is throwing exception
module 'Pyro4' has no attribute 'naming'
when using Pyro4 version 4.62, thus get_my_ip() is defaulting to use
result = socket.gethostbyname(socket.gethostname())
The solution is to add
import Pyro4.naming
The text was updated successfully, but these errors were encountered: