177330/getaddrinfo-failed-what-does-that-mean
I am getting this error when launching the hello world sample:
File "C:\Python27\lib\socket.py", line 224, in meth return getattr(self._sock,name)(*args) gaierror: [Errno 11004] getaddrinfo failed
This is from where I launched it: http://bottlepy.org/docs/dev/.
Can someone help me with this?
The problem is the hostname. If it doesn't work there, it's not going to work in the Bottle example.
import socket socket.getaddrinfo('localhost', 8080)
You can try '127.0.0.1' instead of 'localhost' in case that's the problem. I hope this helps.
** - Performs exponential (power) calculation on ...READ MORE
It's a function annotation. In more detail, Python 2.x ...READ MORE
The enumerate() function adds a counter to ...READ MORE
It's a slicing, and what it does ...READ MORE
AF stands for Address Family. INET means Internet ...READ MORE
READ MORE
suppose you have a string with a ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.