[Pythonmac-SIG] Trouble installing PyObjC 2.0 from source
Mike Covill
mcovill at mac.com
Sat Jul 19 20:16:59 CEST 2008
Can anyone give me some pointers on installing PyObjC 2.0 from
source? I have a fresh installation on my MacBookPro with Leopard
10.5.4 of Python 2.5.2 in /Library/... , and nothing else. I checked
out the PyObjC source at "http://svn.red-bean.com/pyobjc/trunk" and
ran the "02-develop-all.sh" shell program in pyobjc/. I got lots of
errors, some of which were fixed by reverting back to svn 1.4.4. But
I am still getting errors like those shown below (first and last
error). My litmus test to see if installation was successful is to
run python and try to import Foundation or objc in a new shell.
First error:
> gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -
> fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
> -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/
> Python.framework/Versions/2.5/include/python2.5 -c Modules/objc/
> bundle-variables.m -o build/temp.macosx-10.3-i386-2.5/Modules/objc/
> bundle-variables.o -DPyObjC_STRICT_DEBUGGING -DMACOSX -no-cpp-
> precomp -Wno-long-double -g -fexceptions -O1 -Wall -Wstrict-
> prototypes -Wmissing-prototypes -Wformat=2 -W -Wshadow -Wpointer-
> arith -Wmissing-declarations -Wnested-externs -Wno-long-long -Wno-
> import -I/usr/include/libxml2 -Ibuild/codegen/ -Ilibffi-src/include -
> Ilibffi-src/powerpc
> Modules/objc/bundle-variables.m: In function
> ‘PyObjC_loadBundleFunctions’:
> Modules/objc/bundle-variables.m:221: error: ‘_localHandler’
> undeclared (first use in this function)
> Modules/objc/bundle-variables.m:221: error: (Each undeclared
> identifier is reported only once
> Modules/objc/bundle-variables.m:221: error: for each function it
> appears in.)
> Modules/objc/bundle-variables.m: In function
> ‘PyObjC_loadBundleFunctions’:
> Modules/objc/bundle-variables.m:221: error: ‘_localHandler’
> undeclared (first use in this function)
> Modules/objc/bundle-variables.m:221: error: (Each undeclared
> identifier is reported only once
> Modules/objc/bundle-variables.m:221: error: for each function it
> appears in.)
> lipo: can't figure out the architecture type of: /var/tmp//
> ccehSa3x.out
> error: command 'gcc' failed with exit status 1
... 24000 lines ...
Last error:
> running develop
> running egg_info
> creating Lib/pyobjc_framework_XgridFoundation.egg-info
> writing requirements to Lib/pyobjc_framework_XgridFoundation.egg-
> info/requires.txt
> writing Lib/pyobjc_framework_XgridFoundation.egg-info/PKG-INFO
> writing top-level names to Lib/pyobjc_framework_XgridFoundation.egg-
> info/top_level.txt
> writing dependency_links to Lib/pyobjc_framework_XgridFoundation.egg-
> info/dependency_links.txt
> writing manifest file 'Lib/pyobjc_framework_XgridFoundation.egg-info/
> SOURCES.txt'
> writing manifest file 'Lib/pyobjc_framework_XgridFoundation.egg-info/
> SOURCES.txt'
> running build_ext
> Creating /Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/site-packages/pyobjc-framework-XgridFoundation.egg-link
> (link to Lib)
> Adding pyobjc-framework-XgridFoundation 2.0 to easy-install.pth file
>
> Installed /Users/mcovill/projects/pyobjc/pyobjc/pyobjc-framework-
> XgridFoundation/Lib
> Processing dependencies for pyobjc-framework-XgridFoundation==2.0
> Searching for pyobjc-framework-Cocoa>=2.0
> Reading http://pypi.python.org/simple/pyobjc-framework-Cocoa/
> Couldn't find index page for 'pyobjc-framework-Cocoa' (maybe
> misspelled?)
> Scanning index of all packages (this may take a while)
> Reading http://pypi.python.org/simple/
> No local packages or download links found for pyobjc-framework-
> Cocoa>=2.0
> error: Could not find suitable distribution for
> Requirement.parse('pyobjc-framework-Cocoa>=2.0')
Thanks,
Mike Covill
More information about the Pythonmac-SIG
mailing list