472,986 Members | 2,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,986 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 2425
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.