Solved: tkinter: Better Traceback
Thomas Güttler
guettler at thomas-guettler.de
Fri Jul 18 03:00:50 EDT 2003
Thomas Güttler wrote:
> Fredrik Lundh wrote:
>
>> Thomas Güttler wrote:
>>
>>> Is there a way to get a better traceback in tkinter?
>>> It would be nice to see the line number of the last line
>>> of "my" code.
>>>
>>> Exception in Tkinter callback
>>> Traceback (most recent call last):
>>> File
>>> "/var/tmp/python-2.2.2-build//usr/lib/python2.2/lib-tk/Tkinter.py",
>>> line 1299, in __call__
>>> args = apply(self.subst, args)
>>> File
>>> "/var/tmp/python-2.2.2-build//usr/lib/python2.2/lib-tk/Tkinter.py",
>>> line 1035, in _substitute
>>> e.height = getint(h)
>>> ValueError: invalid literal for int(): ??
>>
>> it's not a bug in your code, it's an incompatible change in Tk 8.4.2,
>> which uses "??" to represent an "undefined integer".
>>
>> either upgrade your Tkinter (Python 2.3 contains a workaround), or down-
>> grade your Tk to 8.4.1 or earlier (or link Tkinter against Tk 8.3.x).
>
> Hi Fredrik,
>
> Both solutions are need to change this which only root can do.
> The application will be installed on several workstations
> running Suse Linux8.2. Is there a workaround?
>
> Would be good if I could use the default python (2.2.2)
> and TK version (8.4.2).
>
> thomas
Solved with the new python-tk rpm from:
http://www.suse.de/en/private/download/updates/82_i386.html
thomas
More information about the Python-list
mailing list