Agg backend problem with 0.53

I've installed 0.53 on my Win98 and Win2000 PCs and both suffer a problem which seems specific to the default Agg backend. It's an interoperability problem with trying to use TkAgg from the SciTE editor IDE or from an IDLE module window. If I use the TkAgg backend from a DOS window, it works OK. Also, if I change the backend to GTK, all is well from all environments.

Here is the output if I run an example from SciTE under Win98. Win2000 fails similarly.

pythonw -u errorbar_demo.pyw

Fatal Python error: PyEval_RestoreThread: NULL tstate

Process failed to respond; forcing abrupt termination...>Exit code: 0

It's evidently something to do with threads and is probably an inherent problem with Agg. I'm just bringing this to the attention of others here who may be having similar problems. Perhaps John knows what's going on and whether anything can be done about it. The convenience of working in SciTE For the moment,

Gary Ruben

···

--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm

As JDH suggested, TkAgg works (as far as I've tested anyway) with IDLE
by using the -n flag when starting IDLE; I build -n into the shortcut
for IDLE on my desktop.

In general, TkAgg is known to work with:

python
idle -n
IPython

TkAgg is known not work with:

SciTE
pythonw
Pythonwin
idle

Both of the latter shells fail with a RuntimeError "abnormal program
termination".

I checked on www.python.org about Tkinter and Pythonwin and they're
known not to work together so that explains TkAgg on Pythonwin.
http://www.python.org/topics/tkinter/trouble.html

I also looked into SciTE a little and discovered that it is related to
Scintilla which in turn was derived from Pythonwin.

This indicates to me that the same problem with Tkinter may be affecting
both (SciTE and Pythonwin)... but I am out on a limb.

Regards,
Todd

···

On Thu, 2004-04-22 at 06:11, Gary Ruben wrote:

I've installed 0.53 on my Win98 and Win2000 PCs and both suffer a problem which seems specific to the default Agg backend. It's an interoperability problem with trying to use TkAgg from the SciTE editor IDE or from an IDLE module window.

--
Todd Miller <jmiller@...86...>