Are There Known Problems With tkinter And VPS Servers?

Terry Reedy tjreedy at udel.edu
Sun Sep 27 19:32:42 EDT 2015


On 9/27/2015 5:31 PM, Tim Daneliuk wrote:

>> Of late, I am seeing core dumps of this program (which has been stable/mature for some
>> years) but only on VPS servers, both FreeBSD 10 and CentOS 6/7.

> Correction:  It dumps core on FreeBSD 10.2

Dumping core when there is no terminal server, instead of exiting 
gracefully, might be considered a bug.

> but on CentOS 6 I get:
>
> Traceback (most recent call last):
>    File "/usr/local/TundraWare/bin/twander.py", line 5464, in <module>
>      UI = twanderUI(UIroot)
>    File "/usr/local/TundraWare/bin/twander.py", line 2152, in __init__
>      self.CmdBtn = Menubutton(self.mBar, text=COMMANDMENU, underline=0, state=DISABLED)
>    File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 2710, in __init__
>      Widget.__init__(self, master, 'menubutton', cnf, kw)
>    File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 1932, in __init__
>      (widgetName, self._w) + extra + self._options(cnf))
> _tkinter.TclError

Beside Paul's comment, I suggest running with 2.7.latest and tk 
8.6.latest if at all possible to get tkinter and tk bug fixed.

Also, Menubutton is considered obsolete for Window level menus, so it 
may not be maintained as well.  Just use Menu if at all possible.

-- 
Terry Jan Reedy




More information about the Python-list mailing list