getaddrinfo failed what does that mean

0 votes

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?

May 13, 2022 in Python by Kichu
• 19,040 points
1,158 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

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.

answered May 15, 2022 by narikkadan
• 63,600 points

edited Mar 5

Related Questions In Python

+4 votes
3 answers

What does these operator mean **, ^, %, // ?

** - Performs exponential (power) calculation on ...READ MORE

answered Apr 12, 2018 in Python by anto.trigg4
• 3,440 points
1,600 views
0 votes
1 answer

What does ' -> ' mean in Python function definitions?

It's a function annotation. In more detail, Python 2.x ...READ MORE

answered May 23, 2018 in Python by charlie_brown
• 7,720 points
1,039 views
0 votes
1 answer

What does enumerate mean?

The enumerate() function adds a counter to ...READ MORE

answered Oct 11, 2018 in Python by SDeb
• 13,300 points
736 views
0 votes
1 answer

What does [:] mean?

It's a slicing, and what it does ...READ MORE

answered Jan 16, 2019 in Python by SDeb
• 13,300 points
2,821 views
0 votes
1 answer

What does AF_INET mean?

AF stands for Address Family. INET means Internet ...READ MORE

answered Aug 24, 2023 in Python by Albert

edited Mar 5 5,316 views
0 votes
0 answers

What does NameError: name 'withdrawal' is not defined mean ?

READ MORE

Jun 6, 2020 in Python by Shanice
• 120 points

recategorized Jun 8, 2020 by Gitika 988 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,697 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP