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

Pythonwin crashes

P: n/a
Does anyone else have a problem with Pythonwin crashing after running a
python script with graphics libraries? Whenever I use Pythonwin to run
a PyGame or PyOgre script, Pythonwin crashes when the script exits.

I know it's probably because the Pythonwin interpreter can't read from
the console once the graphics mode has been changed, but has anyone
discovered a workaround? I'd like to know if this problem is specific
to my machine, or if others have witnessed this.

Thanks
Tim

Sep 28 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
accolades wrote:
Does anyone else have a problem with Pythonwin crashing after running a
python script with graphics libraries? Whenever I use Pythonwin to run
a PyGame or PyOgre script, Pythonwin crashes when the script exits.

I know it's probably because the Pythonwin interpreter can't read from
the console once the graphics mode has been changed, but has anyone
discovered a workaround? I'd like to know if this problem is specific
to my machine, or if others have witnessed this.

Thanks
Tim


I think it's pretty much universal. Pythonwin crashes when you run
programs with Tk in them.

--
--------------------------
Lucas Raab
lvraab"@"earthlink.net
dotpyFE"@"gmail.com
AIM: Phoenix11890
MSN: dotpyfe "@" gmail.com
IRC: lvraab
ICQ: 324767918
Yahoo: Phoenix11890
Sep 29 '05 #2

P: n/a
Lucas Raab wrote:
accolades wrote:
Does anyone else have a problem with Pythonwin crashing after running a
python script with graphics libraries? Whenever I use Pythonwin to run
a PyGame or PyOgre script, Pythonwin crashes when the script exits.

I know it's probably because the Pythonwin interpreter can't read from
the console once the graphics mode has been changed, but has anyone
discovered a workaround? I'd like to know if this problem is specific
to my machine, or if others have witnessed this.

Thanks
Tim

I think it's pretty much universal. Pythonwin crashes when you run
programs with Tk in them.


The problem is that PythonWin uses MFC-based windowing, and runs
programs as a part of the same process that the IDE itself runs in.

This means that there are conflicting requirements for windowing, and
this can lead to PythonWin getting confused enough to crash and die.

To avoid this you need a development system that uses a remote debugging
technique - WingIDE, for example, can successfully debug programs based
on Tkinter, wxPython and other graphical toolkits, because the programs
it runs are run as separate processes.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org

Sep 29 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.