943,863 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Marked Solved
  • Views: 18134
  • Python RSS
You are currently viewing page 1 of this multi-page discussion thread
Sep 16th, 2007
-1

socket error: connection refused

Expand Post »
I have windows xp operating system at my home with python 2.5 and same operating system with python 2.4 at my computer lab. While working in python IDLE suddenly this error message --socket error:connection refused-- pops up and then python IDLE does not work at all.To make it work again i have to reinstall it.
Is there any other solution to this problem. Please let me know.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
AnjaliThukral is offline Offline
5 posts
since Sep 2007
Sep 16th, 2007
0

Re: socket error: connection refused

reinstall! Wow. I've gotten that message before, but rebooting is the most extreme solution to date for me.

It may be the case that your firewall is blocking connections to IP address 127.0.0.1, the internal loopback that Python uses.

If so, you can go into Symantec/Norton/McCaffee/whatever and enable Python on that address.

Hope that helps,
Jeff
Reputation Points: 92
Solved Threads: 156
Practically a Master Poster
jrcagle is offline Offline
608 posts
since Jul 2006
Sep 18th, 2007
0

Re: socket error: connection refused

Thanks Jeff I will try that!
Anjali.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
AnjaliThukral is offline Offline
5 posts
since Sep 2007
Sep 18th, 2007
0

Re: socket error: connection refused

Ive had that happen to me. What you can do is go to your task manager and under "processes" close all python software then re-open.

I had to reinstall twice before I figured that out.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
OLer94 is offline Offline
7 posts
since Sep 2007
Sep 21st, 2007
0

Re: socket error: connection refused

I am not finding any place in symantec antivirus to put that ip address.
Although i disabled it all together, and it worked.
But still want to do that u said earlier.
waiting for answer, thanks!
Anjali.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
AnjaliThukral is offline Offline
5 posts
since Sep 2007
Aug 25th, 2008
0

Re: socket error: connection refused

This is lame! Is there a better free IDE? I'm sick of IDLE's issues.
Reputation Points: 16
Solved Threads: 17
Junior Poster
zachabesh is offline Offline
106 posts
since Jun 2008
Oct 30th, 2008
0

Re: socket error: connection refused

If you are stuck on windows, check out Notepad++
Reputation Points: 31
Solved Threads: 7
Light Poster
tyincali is offline Offline
45 posts
since Oct 2008
Nov 2nd, 2008
0

Re: socket error: connection refused

Free IDE? Many
Wing IDE 101 - but reduced features
Drpython - No debugging
PyScripter
Netbeans with Nbpython
Eclipse with pydev plugin
Eric (Make sure you take care of Qt licence)............etc
Reputation Points: 462
Solved Threads: 392
Senior Poster
evstevemd is offline Offline
3,681 posts
since Jun 2007
Feb 9th, 2009
0

Re: socket error: connection refused

I have had this problem with version 2.5, 2.6, and 3.0. I have uninstalled and reinstalled several times but IDLE is still not working. The error popup reads "Socket Error: A socket operation was attempted to an unreachable network." IDLE does not work with the firewall turned off. Any suggestions?
Last edited by Bangmaker; Feb 9th, 2009 at 9:11 pm.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Bangmaker is offline Offline
1 posts
since Feb 2009
Aug 14th, 2010
0
Re: socket error: connection refused
Hey guys
I've had the same problem and by looking at lots of different ways to solve the problem i have found the solution. I'm not sure on the specific reasons and stuff but basically, the error only pops up if you had not ended the "while" command. So i think the code keeps repeating in that socket or something. Just remember before you close the python window when you go to test your code, write a code to end the "while" command.(it will tell you that the program is still running and if you want to kill it)
Reputation Points: 10
Solved Threads: 1
Newbie Poster
xXLOLXx is offline Offline
1 posts
since Aug 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Py2exe help
Next Thread in Python Forum Timeline: replace int? with string writing to file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC