By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,660 Members | 1,187 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,660 IT Pros & Developers. It's quick & easy.

Why do my Python scripts sometimes not run?

P: 1
I'm using IDLE (Python GUI) 2.5.1

I open the Python Shell
>New Window
I type in my script
>Run Module

If IDLE was just started, my script runs fine. After editing my script a few times, the Python shell sometimes just says

======= Restart =======

even though the exact same script runs fine other times.

I also noticed that when I experience this problem, and open up task manage, there are a few instances of the program running, which I have to end manually. Another problem I have when this happens is that, after exiting the Shell and editor, I have to go into task manager and close each instance of Python manually or else it won't let me start it up again.

The programming book I'm reading uses IDLE for every example, in which they encourage the reader to follow along. I wanted to be able to do that.
Jun 9 '11 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 2.5K+
P: 2,851
"======= Restart =======" indicates the environment was restarted so your revised script can be imported. Otherwise, your script would have to be reimported with reload(). I don't know why you end up with multiple process running unless errors are not handled properly (just guessing). Try using another IDE like Pythonwin.
Jun 14 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.