Adam wrote: > gcc -m64 -L/Applications/sage/local/lib -bundle -undefined > dynamic_lookup build/temp.macosx-10.3-i386-2.5/_tkinter.o build/ > temp.macosx-10.3-i386-2.5/tkappinit.o -L/usr/lib/ -ltcl8.5 -ltk8.5 -o > build/lib.macosx-10.3-i386-2.5/_tkinter.so > ld warning: in /Applications/sage/local/lib/libtcl8.5.dylib, file is > not of required architecture > ld warning: in /Applications/sage/local/lib/libtk8.5.dylib, file is > not of required architecture
You should probably remove the libtcl8.5.dylib and libtk8.5.dylib under /Applications/sage/local/lib/: these files are probably from the Yacop Tcl installation. We really want to link against the libtcl/libtk under /usr/lib instead. You should probably also remove /Applications/sage/local/lib/python2.5/site-packages/Tkinter-1.0-py2.5.egg-info /Applications/sage/local/lib/python2.5/site-packages/_tkinter.so to make sure the next installation attempt really builds them from scratch. HTH, C. > running install_lib > copying build/lib.macosx-10.3-i386-2.5/_tkinter.so -> /Applications/ > sage/local/lib/python2.5/site-packages > creating /Applications/sage/local/lib/python2.5/site-packages/lib-tk > copying build/lib.macosx-10.3-i386-2.5/lib-tk/Tkinter.py -> / > Applications/sage/local/lib/python2.5/site-packages/lib-tk > byte-compiling /Applications/sage/local/lib/python2.5/site-packages/ > lib-tk/Tkinter.py to Tkinter.pyc > running install_data > copying lib-tk/Canvas.py -> /Applications/sage/local/lib/python2.5/lib- > tk > copying lib-tk/Dialog.py -> /Applications/sage/local/lib/python2.5/lib- > tk > copying lib-tk/FileDialog.py -> /Applications/sage/local/lib/python2.5/ > lib-tk > copying lib-tk/FixTk.py -> /Applications/sage/local/lib/python2.5/lib- > tk > copying lib-tk/ScrolledText.py -> /Applications/sage/local/lib/ > python2.5/lib-tk > copying lib-tk/SimpleDialog.py -> /Applications/sage/local/lib/ > python2.5/lib-tk > copying lib-tk/Tix.py -> /Applications/sage/local/lib/python2.5/lib-tk > copying lib-tk/tkColorChooser.py -> /Applications/sage/local/lib/ > python2.5/lib-tk > copying lib-tk/tkCommonDialog.py -> /Applications/sage/local/lib/ > python2.5/lib-tk > copying lib-tk/Tkconstants.py -> /Applications/sage/local/lib/ > python2.5/lib-tk > copying lib-tk/Tkdnd.py -> /Applications/sage/local/lib/python2.5/lib- > tk > copying lib-tk/tkFileDialog.py -> /Applications/sage/local/lib/ > python2.5/lib-tk > copying lib-tk/tkFont.py -> /Applications/sage/local/lib/python2.5/lib- > tk > copying lib-tk/Tkinter.py -> /Applications/sage/local/lib/python2.5/ > lib-tk > copying lib-tk/tkMessageBox.py -> /Applications/sage/local/lib/ > python2.5/lib-tk > copying lib-tk/tkSimpleDialog.py -> /Applications/sage/local/lib/ > python2.5/lib-tk > copying lib-tk/turtle.py -> /Applications/sage/local/lib/python2.5/lib- > tk > running install_egg_info > Writing /Applications/sage/local/lib/python2.5/site-packages/ > Tkinter-1.0-py2.5.egg-info > eta /Applications/sage/spkg/optional/yacop1.0/Tkynter-1.0$ sage -c > "import _tkinter" > Traceback (most recent call last): > File "/Applications/sage/local/bin/sage-eval", line 14, in <module> > eval(compile(s,'<cmdline>','exec')) > File "<cmdline>", line 1, in <module> > ImportError: dlopen(/Applications/sage/local/lib/python2.5/site- > packages/_tkinter.so, 2): Symbol not found: _TclFreeObj > Referenced from: /Applications/sage/local/lib/python2.5/site- > packages/_tkinter.so > Expected in: dynamic lookup > > Does that mean there was a problem with the lib-tk/ folder? > > Again, thanks, > Adam > > > my setup.py: > > from distutils.core import setup, Extension > import os > import glob > setup(name='Tkinter', > version='1.0', > ext_modules=[Extension('_tkinter', ['_tkinter.c', > 'tkappinit.c'], > define_macros=[('WITH_APPINIT', 1)], > include_dirs = ['/Library/Frameworks/ > Tcl.framework/Headers'], > libraries = ["tcl8.5","tk8.5"], > library_dirs = ['/usr/lib/'] > )], > py_modules=['lib-tk/Tkinter'], > data_files=[('lib/python2.5/lib-tk',glob.glob('lib-tk/*py'))] > ) > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---