I am running Mac osx 10.4 on a Pentium iMac. I have downloaded, unpacked and installed Tcl 8.5a5, Tk 8.5a5, and then Python 2.5.
When I attempt to import Tkinter from a Python shell, I get the following:
>>> import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framewor k/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", line 38, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: dlopen(/Library/Frameworks/Python.framewor k/Versions/2.5/lib/python2.5/lib-dynload/_tkinter.so, 2): Library not loaded: /Library/Frameworks/Tcl.framework/Versions/8.4/Tcl
Referenced from: /Library/Frameworks/Python.framewor k/Versions/2.5/lib/python2.5/lib-dynload/_tkinter.so
Reason: image not found
>>>
Soooo...... just how DO I "configure" Python for Tk? And what image was not found? How do we find it?
Thanks,
Ralph
When I attempt to import Tkinter from a Python shell, I get the following:
>>> import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framewor k/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", line 38, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: dlopen(/Library/Frameworks/Python.framewor k/Versions/2.5/lib/python2.5/lib-dynload/_tkinter.so, 2): Library not loaded: /Library/Frameworks/Tcl.framework/Versions/8.4/Tcl
Referenced from: /Library/Frameworks/Python.framewor k/Versions/2.5/lib/python2.5/lib-dynload/_tkinter.so
Reason: image not found
>>>
Soooo...... just how DO I "configure" Python for Tk? And what image was not found? How do we find it?
Thanks,
Ralph
Comment