Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#16202 closed defect (fixed)

py30-tkinter gives tk version mismatch error

Reported by: reid@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: python tkinter Cc:
Port: py30-tkinter

Description (last modified by ryandesign (Ryan Schmidt))

Error output:

    root = Tk()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/lib-tk/", line 1637, in __init__
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/lib-tk/", line 1656, in _loadtk
    % (_tkinter.TK_VERSION, tk_version))
RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.4)

Changing Portfile (currently) line 43 from:

        reinplace "s|__TK-VERSION__|8.4|g" ${worksrcpath}/


        reinplace "s|__TK-VERSION__|8.5|g" ${worksrcpath}/

Seems to resolve the issue.

Change History (5)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Keywords: python tkinter added
Milestone: Port Bugs
Owner: changed from macports-tickets@… to mww@…

Assigning to maintainer.

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

Description: modified (diff)
Port: py30-tkinter added

comment:3 Changed 10 years ago by ryandesign (Ryan Schmidt)

Agreed. This change was made for py-tkinter in r33349 (see #13929) and for py25-tkinter in r33426. No response from maintainer so I'll fix it.

comment:4 Changed 10 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed

Made the change in r40090, though I cannot test it due to #16599.

comment:5 Changed 9 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.