This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ned.deily
Recipients 5ragar5, benjamin.peterson, ned.deily, ronaldoussoren
Date 2011-03-09.05:02:58
SpamBayes Score 8.9450914e-05
Marked as misclassified No
Message-id <1299646979.14.0.795000101411.issue10537@psf.upfronthosting.co.za>
In-reply-to
Content
Now that ActiveState has released a version of Tcl/Tk 8.5 (8.5.9.2) for Mac OS X that is also an Aqua Cocoa Tk (like the Apple-supplied Tk 8.5.7 in 10.6) and supports 64-bit, versions of Python linked with the new ActiveTcl 8.5.9 do not display the problem reported here as well as a number of other problems reported elsewhere.  Unfortunately, as released, the 64-bit/32-bit python.org Python 2.7.1 for 10.6 links only to the Apple-supplied Tcl/Tk 8.5. Until the next release of Python 2.7 (2.7.2), the best workaround without rebuilding remains to use the 32-bit-only installer for 2.7.1.

Instead of rebuilding, it *is* possible to modify the library paths in the _tkinter extension module using the OS X install_name_tool so that the released 2.7.1 Tkinter will link with an ActiveTcl 8.5.9:

$ cd /Library/Frameworks/Python.framework/Versions/2.7/
$ cd ./lib/python2.7/lib-dynload
$ sudo cp -pE _tkinter.so _tkinter.so.BACKUP  # just in case
$ sudo install_name_tool \
  -change /System/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl \
                 /Library/Frameworks/Tcl.framework/Versions/8.5/Tcl \
  -change /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk \
                 /Library/Frameworks/Tk.framework/Versions/8.5/Tk \
  _tkinter.so

But this is definitely not recommended as you will likely run into other issues that have been fixed since the 2.7.1 release.

There is now a webpage that summarizes the somewhat confusing state of affairs with regard to Tcl/Tk support with Python on Mac OS X:

http://www.python.org/download/mac/tcltk/
History
Date User Action Args
2011-03-09 05:02:59ned.deilysetrecipients: + ned.deily, ronaldoussoren, benjamin.peterson, 5ragar5
2011-03-09 05:02:59ned.deilysetmessageid: <1299646979.14.0.795000101411.issue10537@psf.upfronthosting.co.za>
2011-03-09 05:02:58ned.deilylinkissue10537 messages
2011-03-09 05:02:58ned.deilycreate