Opened 16 years ago

Closed 16 years ago

Last modified 16 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 Carsten Schmidt))

Error output:

    root = Tk()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/lib-tk/Tkinter.py", line 1637, in __init__
    self._loadtk()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/lib-tk/Tkinter.py", 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}/setup.py

To:

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

Seems to resolve the issue.

Change History (5)

comment:1 Changed 16 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 16 years ago by ryandesign (Ryan Carsten Schmidt)

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

comment:3 Changed 16 years ago by ryandesign (Ryan Carsten 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 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

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

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.