Opened 11 years ago

Closed 5 years ago

#38268 closed defect (fixed)

tcl/tk 8.6 breaks apbs_tools.py in pymol

Reported by: howarth@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: pymol

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The tcl/tk 8.6 upgrade in MacPorts also has broke the ABPS Tools2 plugin component (apbs_tools.py) in the pymol package. When the APBS Tools2 menu item in the Plugins menu of pymol is selected, the following error occurs...

<class '_tkinter.TclError'> Exception in Tk callback
  Function: <function <lambda> at 0x10eadcb18> (type: <type 'function'>)
  Args: ()
Traceback (innermost last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Pmw/Pmw_1_3_3/lib/PmwBase.py", line 1753, in __call__
    return apply(self.func, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pmg_tk/startup/apbs_tools.py", line 265, in <lambda>
    command = lambda s=self: APBSTools2(s))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pmg_tk/startup/apbs_tools.py", line 628, in __init__
    group.pack(fill='both',expand=1, padx=4, pady=5)
  File "<string>", line 1, in pack
    None
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", line 1764, in pack_configure
    + self._options(cnf, kw))
<class '_tkinter.TclError'>: cannot use geometry manager pack inside .4774289136.4774290784.4774443416.4491855488 which already has slaves managed by grid

This appears to be a general issue with the new tcl/tk 8,6 which is inhibiting many grpups from migrating to it due to the regression in functionality for legacy code.

https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.tcl/ncxQEhQ81TI

Change History (4)

comment:1 Changed 11 years ago by howarth@…

MacPort package maintainers should watch out for a similar regression in any packages that use tk and try to pack widgets.

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:3 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added

comment:4 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: newclosed

I am not entirely sure when, but somewhere along the line, pymol started working with the latest version of Tcl/Tk.

Note: See TracTickets for help on using tickets.