Rajanikanth Jammalamadaka rajanikanth at gmail.com  wrote:
Thanks for your reply Kevin. I installed Tk 8.5 but now I get this error:

Traceback (most recent call last):
 File "/Library/Frameworks/Python.framework/Versions/Current/bin/idle",
line 5, in <module>
  main()
 File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/idlelib/PyShell.py",
line 1382, in main
  root = Tk(className="Idle")
 File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py",
line 1645, in __init__
  self._loadtk()
 File 
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py",
line 1659, in _loadtk
  % (_tkinter.TK_VERSION, tk_version)
RuntimeError: tk.h version (8.4) doesn't match libtk.a version (8.5)

-------------------

I am seeing this same problem with Python 2.6 on Mac OSX 10.4. First I had
ImportError: 
dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_tkinter.so,
2)

I installed ActiveState Tk 8.5, now I see the error above. Somehow
_tkinter.TK_VERSION is '8.4' but the version of Tk that is searched
and loaded is 8.5.

I previously installed Python 2.6rc2 and rc3 from source, could that
have something to do with this? I do seem to be loading the correct
_tkinter.so:
In [3]: _tkinter.__file__
Out[3]: 
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_tkinter.so'

and
kent $ ls -l 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_tkinter.so
-rwxrwxr-x   1 root  admin  225936 Oct  1 19:49
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_tkinter.so

I hesitate to blame my tools but this looks to me like a build problem
in the _tkinter module...

Also the Python 2.6 installer did not install /Applications/MacPython
2.6 at all.

Kent

PS Apologies to pythonmac-sig-owner, I originally sent this to that
address by mistake...
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to