Issue 6941: Socket error when launching IDLE (original) (raw)

Created on 2009-09-18 19:58 by 08jpurcell, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
idleerror.bmp adgprogramming,2009-10-13 20:48 IDLE Error Screenshot
Messages (10)
msg92840 - (view) Author: Joshua Purcell (08jpurcell) Date: 2009-09-18 20:00
My IDLE (Python GUI) Will NOT open It says socket error which is really annoying me because it doesnt open IDLE (AT ALL)
msg92851 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2009-09-18 22:34
Can you copy what is being printed out to a text file or into a comment on this issue? Also, what OS is this on? Otherwise we have nothing to work off of. I also deleted whatever exe you uploaded as that will not help with debugging at all.
msg93884 - (view) Author: Bonnie Douglas (bdouglasoz) Date: 2009-10-12 01:17
I too seem to have experienced this same problem. I am running Windows Vista. After choosing to shut down my computer and restart without cleanly shutting down IDLE I got a "socket error" - socket error:connection refused when I next tried to launch IDLE. After pressing OK I got another message: "IDLE's subprocess didn't make a connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection" After a search through the web I simply ran the python-6.2.3.msi file again and chose to "repair" Python 2.6.3 - this has solved the problem. Hope this helps.
msg93940 - (view) Author: (adgprogramming) Date: 2009-10-13 20:48
Here is what happened to me. See the attachment. P.S.: I launched the installer and hit repair. Everything went fine in the installer, but the problem still occured. Should I upgrade to 3.11? If I have to make a change in the source code for IDLE, I am fine with that, I am an experienced programmer. I just need instructions. Please help!
msg93941 - (view) Author: (adgprogramming) Date: 2009-10-13 20:50
Oh! And my OS is Windows XP SP3 Media Center Edition Version.
msg93953 - (view) Author: Bonnie Douglas (bdouglasoz) Date: 2009-10-14 01:06
The only other thing that I've done is change my firewall software. I use Bullguard. I had to use the Custom Security settings for the Firewall, but set it to always allow pythonw.exe and python.exe access to all ports. A colleague of mine is also running XP and ditched IDLE because it kept crashing. I explained my reconfiguration of the firewall to him yesterday but he hasn't implemented my changes yet so I can't report his success/failure. Notepad++ is a great editor to use with Python; it is Python-aware (and it's free). Another colleague uses it along with "print" in his code for debugging. Finally, our computer scientist recommends using Linux only. Apparently that solves all problems?
msg94120 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2009-10-16 01:47
08jpurcell unresponsive, ignoring for now (but see suggestions below) bdouglasoz: had a firewall blocking the subprocess, apparently works for her now. I'd point out that Notepad is just an editor, IDLE gives you much more. Linux is great, but IDLE works fine with Windows XP and since most people use Windows, we have to be sure that it does! adgprogramming: first, bring up your task manager and make sure there are no python processes running. 2.6.x subprocesses can get stuck. Then make sure that your firewall isn't blocking socket access to localhost. Then restart IDLE. IDLE 3.1.1 may work for you since it has the recent enhancement that allows multiple copies of IDLE to run simultaneously, but it still needs interprocess access via sockets.
msg94146 - (view) Author: (adgprogramming) Date: 2009-10-16 19:31
Thanks so much! It works perfect! There was a process running that had to do with pythonw.exe and idle.bat. My firewall also blocked access to those same programs. Thanks!
msg121226 - (view) Author: Joshua Purcell (08jpurcell) Date: 2010-11-15 13:53
Sorry I've not replied to anyones thoughts until now but nothing seems to fix it
msg121560 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-11-19 19:23
Download and install a current release 2.6.6, 2.7, or 3.1.2 (or 2.7.1 or 3.1.3 in a week or so). Disable or otherwise reconfigure whatever firewall or security software you have that is blocking the socket connection (as your screenshot says). If you still have a problem, ask on python-list and give the info needed for people to help (hardware, os and version, python version, security/firewall software). The bug tracker is for solving problems with Python, not with user machines. Note that 2.6.6 and 3.1.3 are the last bugfix releases for their respective versions.
History
Date User Action Args
2022-04-11 14:56:53 admin set github: 51190
2010-11-19 19:23:42 terry.reedy set status: open -> closednosy: + terry.reedymessages: + resolution: works for me
2010-11-15 13:53:43 08jpurcell set status: closed -> opennosy:kbk, 08jpurcell, bdouglasoz, adgprogrammingmessages: + components: + Windows, - IDLEresolution: works for me -> (no value)
2010-04-29 18:03:03 terry.reedy set status: pending -> closed
2009-10-19 17:06:31 kbk set status: open -> pending
2009-10-16 19:31:41 adgprogramming set status: pending -> openmessages: +
2009-10-16 01:47:55 kbk set status: open -> pendingpriority: normalnosy: + kbkmessages: + resolution: works for me
2009-10-14 03:09:45 brett.cannon set nosy: - brett.cannon
2009-10-14 01:06:14 bdouglasoz set messages: +
2009-10-13 20:50:35 adgprogramming set messages: +
2009-10-13 20:48:03 adgprogramming set files: + idleerror.bmpnosy: + adgprogrammingmessages: +
2009-10-12 01🔞00 bdouglasoz set status: pending -> opennosy: + bdouglasozmessages: +
2009-09-19 15:54:49 r.david.murray set status: open -> pending
2009-09-19 15:20:31 chuck set status: pending -> opentitle: Socket error when launching IDL -> Socket error when launching IDLE
2009-09-19 13:56:36 georg.brandl set status: open -> pending
2009-09-18 22:34:15 brett.cannon set nosy: + brett.cannonmessages: + title: Help -> Socket error when launching IDL
2009-09-18 22:32:36 brett.cannon set files: - python_icon.exe
2009-09-18 20:00:49 08jpurcell set files: + python_icon.exetype: performancemessages: + components: + IDLE
2009-09-18 19:58:12 08jpurcell create