System exit hanging in Leopard



Hello,

I'm using Tkinter to create widgets in Python 2.5 on OS X 10.5. When
I call root.quit or sys.exit in any way, the following traceback
appears, after which the application stops responding and just gives
the spinning rainbow cursor. The IDLE editor and the Python shell
remain responsive, and I can kill the application from the command
line, but not any other way. I don't see anything problematic in the
traceback, but I don't think that the application should be hanging
like this.

Is this likely a Leopard-related issue?

Thanks for any responses,

Tony

Traceback (most recent call last):
File "/Users/tonymullen/Documents/ui", line 11, in <module>
widget.mainloop()
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py",
line 1023, in mainloop
self.tk.mainloop(n)
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py",
line 1405, in __call__
raise SystemExit, msg
SystemExit
.



Relevant Pages

  • problems with nltk
    ... Traceback: ... import _tkinter # If this fails your Python may not be configured for Tk ... ImportError: libtk8.3.so: cannot open shared object file: No such file ... Then I typed import _tkinter but it didn't help, ...
    (comp.lang.python)
  • Tkinter callback caused abnormal program termination
    ... Running my programme in Python 2.3.4 I received the following msg in the ... Exception in Tkinter callback ... There was no other traceback information. ... I had trouble before with Python versions 2.2.1 and 2.2.3 where commenting ...
    (comp.lang.python)
  • Re: Hey, get this! [was: import from database]
    ... I agree that this is 2.3-like behavior, but Python cannot lie ... ... [GCC 3.3.3 (cygwin special)] ... > Traceback: ... print "Trying aifc" ...
    (comp.lang.python)
  • Re: xml.doms weirdness?
    ... I run python as: ... After those imports is the standard Python traceback (because of the ... # installing zipimport hook ... import zipimport # builtin ...
    (comp.lang.python)
  • Re: Help needed in OOP-Python
    ... $ python test.py ... Traceback: ... that's easy to fix. ... in your posted code, but I still haven't seen the problem you reported: ...
    (comp.lang.python)