Tkinter report_callback_exception? 'module' object has no attribute 'print_exception' ?

Jon Schull schull at digitalgoods.com
Wed Sep 4 11:15:43 EDT 2002


Hi,

As I interpret this message, the environment is telling me that
traceback has no "print_exception."   But of course, it does.

I think a file access error is triggering my problem, but why can't I
get a clue from the traceback?

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\jon\python\PIL\all.py", line 101, in ?
    root.mainloop()
  File "C:\Python22\lib\lib-tk\Tkinter.py", line 929, in mainloop
    self.tk.mainloop(n)
  File "C:\Python22\lib\lib-tk\Tkinter.py", line 1296, in __call__
    self.widget._report_exception()
  File "C:\Python22\lib\lib-tk\Tkinter.py", line 1061, in
_report_exception
    root.report_callback_exception(exc, val, tb)
  File "C:\Python22\lib\lib-tk\Tkinter.py", line 1552, in
report_callback_except
ion
    traceback.print_exception(exc, val, tb)
AttributeError: 'module' object has no attribute 'print_exception'



More information about the Python-list mailing list