[Tutor] running function program
Lie Ryan
lie.1296 at gmail.com
Mon Dec 21 00:33:28 CET 2009
On 12/20/2009 11:53 PM, Richard Hultgren wrote:
> Hello,
> when i try to run this (see below) i get message: socket error: no
> connection could be made because the target maching actively refused it,
> and, idle subprocess didn't make connection. either idle can't start a
> subprocess or personal firewall software is blocking the connection.
It's not the problem with the program. It's a problem with IDLE. You've
got a software firewall or some other programs blocking IDLE to make
connection with the python subprocess:
The workarounds are either (from best to worst):
- create a rule to allow python to connect to localhost in your firewall
- don't start more than one instance of IDLE, it could messes things up
sometimes
- restart your machine, it might be some previous IDLE stuck and messing
things up
- start your program from the command line (without IDLE)
- start IDLE without subprocess, be warned that this means your program
runs in the same python instance as IDLE itself and if your program
pokes around too much it will messes IDLE up. Run this in command line
or make a shortcut: C:\Python26\python.exe -m idlelib.idle -n (adjust
path and version appropriately)
More information about the Tutor
mailing list