Using blt in MacPorts
markd at macports.org
markd at macports.org
Tue Mar 4 13:39:30 PST 2008
>> Did you install py25-tkinter while tk 8.4.16 was active or while
>> 8.5.1 was active? Maybe you need the latter. Try rebuilding it.
>> (sudo port -ncuf upgrade py25-tkinter)
>
>
>On Mar 3, 2008, at 3:40 PM, Kevin Walzer wrote:
>> Frank Schima wrote:
>>
>>> OK, that works. Thanks! But now when I try to run my python
>>> program, I get the following runtime error:
>>> File "./my_python_program.py", line 158, in <module>
>>> parent=Tkinter.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)
>>> Any more suggestions for me?
>>> Here's a reduced look at my "port installed" output.
>>> py25-tkinter @2.5.1_0 (active)
>>> python25 @2.5.1_4+darwin_9
>>> python25 @2.5.2_0+darwin_9 (active)
>>> tcl @8.4.16_0+darwin_9 (active)
>>> tcl @8.5.1_0
>>> tk @8.4.16_0 (active)
>>> tk @8.5.1_0
>>
>> Python has to be rebuilt to link against Tk 8.5. Try that.
>
>I think you meant 8.4. :)
>
>Guys, thanks very much. After uninstalling all my python add-ons I was
>able to re-install python25 and py25-tkinter and it appears to work.
So did tcl and tk 8.4.x fix BLT?
Mark
More information about the macports-users
mailing list