On Jan 29, 2008 8:02 PM, <skip@pobox.com> wrote:
I installed the py25-tkinter port which got me tk 8.5. Unfortunately, when I run a program which uses it I get an exception from Python (/opt/local/bin/python2.5 in this case):
Traceback (most recent call last): File "/Users/skip/src/leo-4.4.6-final/src/leoPlugins.py", line 222, in loadOnePlugin init_result = result.init() File "/Users/skip/src/leo-4.4.6-final/plugins/plugins_menu.py", line 212, in init g.app.createTkGui(__file__) File "/Users/skip/src/leo-4.4.6-final/src/leoApp.py", line 254, in createTkGui g.app.root = g.app.gui.createRootWindow() File "/Users/skip/src/leo-4.4.6-final/src/leoTkinterGui.py", line 89, in createRootWindow self.root = root = Tk.Tk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1638, in __init__ self._loadtk() File "/opt/local/lib/python2.5/lib-tk/Tkinter.py", line 1658, in _loadtk % (_tkinter.TK_VERSION, tk_version) RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.4)
This was fixed in r33426 [1], do a port selfupdate and try again. Cheers Adam [1] http://trac.macosforge.org/projects/macports/changeset/33426