[Pythonmac-SIG] Having trouble building Python w/ Tcl/Tk on my new Macbook Pro
skip at pobox.com
skip at pobox.com
Sun Feb 10 03:21:00 CET 2008
I finally put my PowerBook G4 out to pasture and bought a MacBook Pro. I
used SetupAssistant to transfer data from the old box to the new one.
I'm having trouble building any version of _tkinter (from svn 2.5, trunk
(2.6) or py3k) on my new box. Today I decided to debug the problem a bit.
I'm getting this warning when linking _tkinter.so:
ld: warning in /Library/Frameworks//Tcl.framework/Tcl, file is not of required architecture
ld: warning in /Library/Frameworks//Tk.framework/Tk, file is not of required architecture
which suggests to me that those versions of Tcl and Tk are probably PPC
only. (I suspect old AquaTk frameworks copied over by SetupAssistant.)
Looking in /Library/Frameworks I see
drwxr-xr-x 6 root admin 204 Apr 29 2007 AquaTerm.framework
drwxr-xr-x 6 root staff 204 Jan 26 2005 CamelBones.framework
drwxrwxr-x 5 root admin 170 Aug 4 2007 FxPlug.framework
drwxr-xr-x 10 root admin 340 Aug 15 2005 GMP.framework
drwxrwxr-x 8 root admin 272 Jan 31 00:40 HPDeviceModel.framework
drwxrwxr-x 6 root admin 204 Jan 31 00:40 HPPml.framework
drwxrwxr-x 7 root admin 238 Jan 31 00:40 HPServicesInterface.framework
drwxrwxr-x 7 root admin 238 Jan 31 00:40 HPSmartPrint.framework
drwxrwxrwx 6 skip staff 204 Feb 8 2005 HaskellSupport.framework
drwxr-xr-x 9 ellen wheel 306 Sep 6 2006 Mono.framework
drwxrwxr-x 5 root admin 170 Aug 4 2007 PluginManager.framework
drwxrwxr-x 4 root staff 136 Jun 20 2003 PrintMeSSL.framework
drwxrwxr-x 5 root admin 170 Aug 4 2007 ProFX.framework
drwxrwxr-x 7 skip admin 238 Apr 18 2007 Python.framework
drwxrwxr-x 6 root admin 204 Jan 31 2005 SASL2.framework
drwx------ 5 skip admin 170 May 2 2004 SDL.framework
drwxrwxr-x@ 6 root admin 204 Sep 26 2005 StuffIt.framework
drwxrwxr-x@ 5 root admin 170 Sep 26 2005 StuffItSupport.framework
drwxr-xr-x 11 root admin 374 May 14 2004 Tcl.framework
dr-xr-xr-x 11 root staff 374 May 14 2004 Tk.framework
drwxrwxr-x@ 6 root admin 204 Jan 24 2002 XPrint2ModemCtrAPI.framework
There are a number of frameworks there which look suspiciously old. How can
I tell which are PPC and which are Intel? Is it okay to just remove the Tcl
& Tk frameworks? (Renaming them caused the link to succeed.) I noticed
much more recent versions in /System/Library/Frameworks.
Thanks,
Skip
More information about the Pythonmac-SIG
mailing list