New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #16202 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

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@…) (diff)

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

comment:1 Changed 6 years ago by macsforever2000@…

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

Assigning to maintainer.

comment:2 Changed 6 years ago by ryandesign@…

  • Description modified (diff)
  • Port set to py30-tkinter

comment:3 Changed 6 years ago by ryandesign@…

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 6 years ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

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

comment:5 Changed 5 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.