Trouble building against Tkinter on 64-bit python.org python

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Trouble building against Tkinter on 64-bit python.org python

Russell Owen
I'm on MacOS X 10.6.8 using 64-bit Python 2.7.2 from python.org (the
10.6 version) and ActiveState Tcl/Tk 8.5.10.

I would like to build matplotlib 1.1.0 (in fact I'd like to build an
official binary installer) and am running into problems. The build and
install goes fine, though with a few odd messages (see appended log).
But importing pylab rusults in:
objc[1083]: Class TKApplication 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.
objc[1083]: Class TKMenu 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.
objc[1083]: Class TKContentView 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.
objc[1083]: 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.

-- Russell

P.S. partial log of build (not install) of matplotlib:

Edit setupext.py to point it to Apple's built-in libraries, plus include
/usr/local (which doesn't have a lot in it --nothing in lib or includes):
    'darwin' : ['/usr/local', '/usr', '/usr/X11'],

$ python setup.py build
BUILDING MATPLOTLIB
???????????matplotlib: 1.1.0
???????????????python: 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
???????????????????????[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
?????????????platform: darwin

REQUIRED DEPENDENCIES
????????????????numpy: 1.6.1
????????????freetype2: found, but unknown version (no pkg-config)

OPTIONAL BACKEND DEPENDENCIES
???????????????libpng: found, but unknown version (no pkg-config)
??????????????Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5
?????????????????Gtk+: no
???????????????????????* Building for Gtk+ requires pygtk; you must be
able
???????????????????????* to "import gtk" in your build/install
environment
??????Mac OS X native: yes
???????????????????Qt: no
??????????????????Qt4: no
????????????????Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
?????????????datetime: present, version unknown
?????????????dateutil: matplotlib will provide
?????????????????pytz: matplotlib will provide
adding pytz

OPTIONAL USETEX DEPENDENCIES
???????????????dvipng: no
??????????ghostscript: /bin/sh: gs: command not found
????????????????latex: no

[Edit setup.cfg to suppress the above messages]
=========================================================================
===
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends',
'matplotlib.backends.qt4_editor', 'matplotlib.projections',
'matplotlib.testing', 'matplotlib.testing.jpl_units',
'matplotlib.tests', 'mpl_toolkits', 'mpl_toolkits.mplot3d',
'mpl_toolkits.axes_grid', 'mpl_toolkits.axes_grid1',
'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 'matplotlib.tri',
'matplotlib.delaunay', 'pytz', 'dateutil', 'dateutil.zoneinfo']
running build
running build_py
...
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-I/Library/Frameworks/Tcl.framework/Headers
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
-I/Library/Frameworks/Tk.framework/Headers
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
-I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Tcl.framework/Headers/freetype2
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2
-Iagg24/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2
-I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c
src/agg_py_transforms.cpp -o
build/temp.macosx-10.6-intel-2.7/src/agg_py_transforms.o -framework Tcl
-framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-I/Library/Frameworks/Tcl.framework/Headers
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
-I/Library/Frameworks/Tk.framework/Headers
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
-I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Tcl.framework/Headers/freetype2
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2
-Iagg24/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2
-I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c
src/_tkagg.cpp -o build/temp.macosx-10.6-intel-2.7/src/_tkagg.o
-framework Tcl -framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-I/Library/Frameworks/Tcl.framework/Headers
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
-I/Library/Frameworks/Tk.framework/Headers
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
-I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Tcl.framework/Headers/freetype2
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2
-Iagg24/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2
-I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c
CXX/cxx_extensions.cxx -o
build/temp.macosx-10.6-intel-2.7/CXX/cxx_extensions.o -framework Tcl
-framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-I/Library/Frameworks/Tcl.framework/Headers
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
-I/Library/Frameworks/Tk.framework/Headers
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
-I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Tcl.framework/Headers/freetype2
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2
-Iagg24/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2
-I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c
CXX/cxxsupport.cxx -o build/temp.macosx-10.6-intel-2.7/CXX/cxxsupport.o
-framework Tcl -framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-I/Library/Frameworks/Tcl.framework/Headers
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
-I/Library/Frameworks/Tk.framework/Headers
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
-I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Tcl.framework/Headers/freetype2
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2
-Iagg24/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2
-I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c
CXX/IndirectPythonInterface.cxx -o
build/temp.macosx-10.6-intel-2.7/CXX/IndirectPythonInterface.o
-framework Tcl -framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-I/Library/Frameworks/Tcl.framework/Headers
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders
-I/Library/Frameworks/Tk.framework/Headers
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders
-I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Tcl.framework/Headers/freetype2
-I/Library/Frameworks/Tcl.framework/Versions/Current/PrivateHeaders/freet
ype2 -I/Library/Frameworks/Tk.framework/Headers/freetype2
-I/Library/Frameworks/Tk.framework/Versions/Current/PrivateHeaders/freety
pe2 -I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -Isrc/freetype2
-Iagg24/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include/freetype2 -I/usr/include/freetype2
-I/usr/X11/include/freetype2 -I./freetype2
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c
CXX/cxxextensions.c -o
build/temp.macosx-10.6-intel-2.7/CXX/cxxextensions.o -framework Tcl
-framework Tk
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tcl: linker input file unused because
linking not done
i686-apple-darwin10-gcc-4.2.1: -framework: linker input file unused
because linking not done
i686-apple-darwin10-gcc-4.2.1: Tk: linker input file unused because
linking not done
c++ -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -isysroot
/Developer/SDKs/MacOSX10.6.sdk -isysroot /Developer/SDKs/MacOSX10.6.sdk
-g build/temp.macosx-10.6-intel-2.7/src/agg_py_transforms.o
build/temp.macosx-10.6-intel-2.7/src/_tkagg.o
build/temp.macosx-10.6-intel-2.7/CXX/cxx_extensions.o
build/temp.macosx-10.6-intel-2.7/CXX/cxxsupport.o
build/temp.macosx-10.6-intel-2.7/CXX/IndirectPythonInterface.o
build/temp.macosx-10.6-intel-2.7/CXX/cxxextensions.o -L/usr/lib
-L/usr/X11/lib -L/usr/lib -L/usr/X11/lib -lstdc++ -lm -lfreetype -lz
-lstdc++ -lm -o
build/lib.macosx-10.6-intel-2.7/matplotlib/backends/_tkagg.so -framework
Tcl -framework Tk
building 'matplotlib.backends._macosx' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot
/Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG
-g -O3 -DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -I/usr/include -I/usr/X11/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pa
ckages/numpy/core/include -Isrc -Iagg24/include -I.
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c
src/_macosx.m -o build/temp.macosx-10.6-intel-2.7/src/_macosx.o
src/_macosx.m: In function ?FigureManager_init?:
src/_macosx.m:3755: warning: class 'View' does not implement the
'NSWindowDelegate' protocol
src/_macosx.m: In function ?FigureManager_init?:
src/_macosx.m:3755: warning: class 'View' does not implement the
'NSWindowDelegate' protocol

_______________________________________________
Pythonmac-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Reply | Threaded
Open this post in threaded view
|

Re: Trouble building against Tkinter on 64-bit python.org python

Kevin Walzer-5
On 10/12/11 5:29 PM, Russell E. Owen wrote:
> objc[1083]: 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.

--Kevin

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
Pythonmac-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Reply | Threaded
Open this post in threaded view
|

Re: Trouble building against Tkinter on 64-bit python.org python

llvllj
This post has NOT been accepted by the mailing list yet.
In reply to this post by Russell Owen
I still have problem with this issue and I don't know what I'm doing wrong.

objc[1296]: Class TKApplication is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and /Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.
objc[1296]: Class TKMenu is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and /Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.
objc[1296]: Class TKContentView is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and /Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.
objc[1296]: Class TKWindow is implemented in both /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and /Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.


Here is my otool -L Tk on both paths :

on  "/Library/Frameworks/Tk.framework/Versions/8.5"

Tk:
        /Library/Frameworks/Tk.framework/Versions/8.5/Tk (compatibility version 8.5.0, current version 8.5.11)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0)
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 15.0.0)
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 152.0.0)
        /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 625.0.0)
        /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)
        /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 44.0.0)
        /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 38.0.0)
        /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.29.0)
        /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1038.32.0)

on /System/Library/Frameworks/Tk.framework/Versions/8.5 :


Tk: /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk (compatibility version 8.5.0, current version 8.5.9)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.0.0)
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 629.0.0)
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 17.0.0)
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 153.0.0)
        /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
        /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
        /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 53.0.0)
        /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 41.0.0)
        /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 829.0.0)
        /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1125.0.0)


and this is what I did:


sudo install_name_tool -change /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk /Library/Frameworks/Tk.framework/Versions/8.5/Tk Tk

but after that nothing changed at all.
Can you provide me with more detail. I am not much familiar with Linker and C stuff.
Thanks.