Tkinter & Python 2.5 Problems on MAC OS 10.3.9
kw at kevin-walzer.com
Thu Nov 16 14:16:26 CET 2006
Thomas Ploch wrote:
> Hello folks,
> Since this is my first post on the list, a brief introduction of myself.
> My name is Thomas, I am 26 years old, I am a student of Computational
> Linguistics and I am a python user. :-)
> Now my problem:
> I have Tcl/Tk 8.4.4 installed:
> iPimpG4:~ profipimp$ tclsh
> % info patchlevel
> But when I try to import Tkinter
>>>> import Tkinter
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> line 38, in <module>
> import _tkinter # If this fails your Python may not be configured
> for Tk
> ImportError: dlcompat: dyld:
> can't open library: /Library/Frameworks/Tk.framework/Versions/8.4/Tk
> (No such file or directory, errno = 2)
> ...this happens.
> Tkinter worked perfectly with 2.3 and 2.4...
Where is your installation of Tcl/Tk? It sounds like Python can't find it.
Were you using the standard MacPython builds previously, or Unix-based
builds from Fink or DarwinPorts?
Code by Kevin
More information about the Python-list