473,395 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Pythonwin crashes

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
2 2449
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Martin Bless | last post by:
IMHO PythonWin is great help in developing. How can I do something like: if detect("running on PythonWin"): pass # fake arguments ... else: "proceed normal"
0
by: PaulG | last post by:
(I've not found a solution to this anywhere else, so..) With a simple one line file: print "Hello world" if you use pythonwin debugging to step through one line at a time, it crashes...
14
by: Jive | last post by:
I've un-installed Python 2.4, re-installed Python 2.3 and PythonWin for 2.3, but it's still broke. When I start PythonWin, sometimes it looks like it is going to be okay. But as soon as I open...
4
by: Chris P. | last post by:
I've been having a problem with PythonWin that seemed to start completely spontaneously and I don't even know where to START to find the answer. The only thing I can think of that marks the point...
2
by: siggy2 | last post by:
Hi All, (sorry for my bad english) I wrote a __tiny__ and __stupid__ recursive script directly into pythonwin interactive window with a time.sleep(1) and a print before each recursion... I...
2
by: robert | last post by:
There is a strange freeze/crash only on dual core machines: I have a python app (Python 2.3.5 /Pythonwin build 203 / Windows) running with no stability problems on normal machines (Or a crash is...
3
by: archaegeo | last post by:
I am getting started in Python, and I have looked on both the stackless page and python.org and cannot find the answer to what I think is a simple problem. If I start the python command line or...
1
by: Ze'ev | last post by:
Hi, I've installed Python 2.5 and PythonWin (pywin32-210.win32-py2.5) on my new XP machine. The first time I run PythonWin after installation it runs normally but if I close it and try to run it...
1
by: goldtech | last post by:
Hi, Doing GIS scripts. I was running a batch clip script that worked OK for 126 iterations then I got the following message: "Microsoft Visual C++ Runtime Library program:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.