[Pythonmac-SIG] Trouble building against Tkinter on 64-bit python.org python
kw at codebykevin.com
Thu Oct 13 01:44:11 CEST 2011
On 10/12/11 5:29 PM, Russell E. Owen wrote:
> objc: Class TKWindow is implemented in both
> /Library/Frameworks/Tk.framework/Versions/8.5/Tk and
> /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two
> will be used. Which one is undefined.
> Any idea how to deal with this? Google turned up others with this
> problem but no obvious solution.
With Tk-Cocoa, typically you see this message when mixing libraries that
are linked to the system Tk in /System/Library/Frameworks/Tk.framework
and another installation (typically ActiveTcl) in
/Library/Frameworks/Tk.framework. OS X gets confused and crashes with
that error message.
The only solution I've found is by making sure that all of your
Tk-linked libraries link to one location or the other. You can do this
by running otool -L on the relevant binaries and seeing where things are
linked. If you're only seeing this issue now after building matplotlib,
then it's logical to assume that matplotlib may have been linked to the
wrong library. You can change the linking by running install_name_tool
to get matplotlib to point to the correct version of Tk.
Code by Kevin
More information about the Pythonmac-SIG