This change is preventing me from starting web2py because of a problem
with socket.gethostbyname():
http://code.google.com/p/web2py/source/detail?r=36139e7a6c9c14983e0d09f626959beb8fcf9320
I'm on a Mac where I'm not exactly sure how hostnaming
works. socket.getfqdn() is returning some weird stuff, possibly IPv6
addresses.
Right now, socket.getfqdn() returns 'pb-dev' which socket.gethostbyname_ex
is choking on. I tried changing the HostName with scutil but got an even
weirded
hostname:
'1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa'
Note, this is on Mountain Lion with Xcode 4.4 installed.
Traceback (most recent call last):
File "web2py.py", line 25, in <module>
gluon.widget.start(cron=True)
File "/Users/pbreit/web2py/gluon/widget.py", line 895, in start
(options, args) = console()
File "/Users/pbreit/web2py/gluon/widget.py", line 803, in console
options.ips = [ip for ip in socket.gethostbyname_ex(socket.getfqdn())[2]
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
--