Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"getaddrinfo failed", what does that mean?

Tags:

python

bottle

  File "C:\Python27\lib\socket.py", line 224, in meth     return getattr(self._sock,name)(*args)   gaierror: [Errno 11004] getaddrinfo failed 

Getting this error when launching the hello world sample from here:

http://bottlepy.org/docs/dev/

like image 481
Blub Avatar asked Sep 07 '11 12:09

Blub


1 Answers

It most likely means the hostname can't be resolved.

import socket socket.getaddrinfo('localhost', 8080) 

If it doesn't work there, it's not going to work in the Bottle example. You can try '127.0.0.1' instead of 'localhost' in case that's the problem.

like image 133
robots.jpg Avatar answered Oct 01 '22 03:10

robots.jpg