Opened 16 years ago

Last modified 15 years ago

#16202 closed defect

py30-tkinter gives tk version mismatch error — at Initial Version

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

Description

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 (don't know how to turn off auto-formating e.g. underline):

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 (0)

Note: See TracTickets for help on using tickets.