mac os x 10.6 installation error

David Cortesi <[email protected]>
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
Sorry for the newbie question. I'm really trying to install PyGUI
which requires PyObjC. The target is a macbook pro with the standard
Apple python 2.6. I ran easy_install pyobjc; after several paragraphs
of this-n-that it failed for lack of GCC. Oops, I'd never installed
XCode on this machine. I got out the snow leopard dvd and installed
Xcode and reran the easy_install.

Now it goes almost immediately to compiling a _ScreenSaver_ module
which after a number of warnings, fails as follows:

  lipo: can't open input file:
/var/folders/Et/EtxW7vM0HTaS6E9e2To88E+++TI/-Tmp-//ccHZxEai.out (No
such file or directory)
  error: Setup script exited with error: command 'gcc-4.2' failed with
exit status 1

It may be significant that if you Google 'lipo: can't open input file'
you get many hits related to installing a variety of packages such as
pygame, mysql, etc hence this may be a generic easy_install issue with
Mac 10.6.

I'll put the whole voluminous record below, feel free to snip it in any reply.

Thanks for any insight,

Dave Cortesi

[16:39 ~/Documents/Dprojects/PyGui/pyobjc-2.3] easy_install pyobjc
Searching for pyobjc
Best match: pyobjc 2.3
Processing pyobjc-2.3-py2.6.egg
pyobjc 2.3 is already the active version in easy-install.pth

Using /Library/Python/2.6/site-packages/pyobjc-2.3-py2.6.egg
Processing dependencies for pyobjc
Searching for pyobjc-framework-ScreenSaver==2.3
Reading http://pypi.python.org/simple/pyobjc-framework-ScreenSaver/
Reading http://pyobjc.sourceforge.net
Best match: pyobjc-framework-ScreenSaver 2.3
Downloading http://pypi.python.org/packages/source/p/pyobjc-framework-ScreenSaver/pyobjc-framework-ScreenSaver-2.3.tar.gz#md5=f8e9300351df4b8b38e9965b2319562b
Processing pyobjc-framework-ScreenSaver-2.3.tar.gz
Running pyobjc-framework-ScreenSaver-2.3/setup.py -q bdist_egg
--dist-dir /var/folders/Et/EtxW7vM0HTaS6E9e2To88E+++TI/-Tmp-/easy_install-Hz6ZgM/pyobjc-framework-ScreenSaver-2.3/egg-dist-tmp-a9T9Xs
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:266:
UserWarning: Unknown distribution option: 'use_2to3'
  warnings.warn(msg)
Modules/_ScreenSaver_inlines.m:5: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'function_map'
Modules/_ScreenSaver_inlines.m:18: warning: return type defaults to 'int'
Modules/_ScreenSaver_inlines.m:18: warning: function declaration isn't
a prototype
Modules/_ScreenSaver_inlines.m: In function 'PyObjC_MODULE_INIT':
Modules/_ScreenSaver_inlines.m:19: warning: implicit declaration of
function 'PyObjC_MODULE_CREATE'
Modules/_ScreenSaver_inlines.m:19: warning: initialization makes
pointer from integer without a cast
Modules/_ScreenSaver_inlines.m:21: warning: implicit declaration of
function 'PyObjC_INITERROR'
Modules/_ScreenSaver_inlines.m:25: warning: implicit declaration of
function 'PyObjC_CreateInlineTab'
Modules/_ScreenSaver_inlines.m:25: error: 'function_map' undeclared
(first use in this function)
Modules/_ScreenSaver_inlines.m:25: error: (Each undeclared identifier
is reported only once
Modules/_ScreenSaver_inlines.m:25: error: for each function it appears in.)
Modules/_ScreenSaver_inlines.m:25: warning: passing argument 3 of
'PyModule_AddObject' makes pointer from integer without a cast
Modules/_ScreenSaver_inlines.m:29: warning: implicit declaration of
function 'PyObjC_INITDONE'
Modules/_ScreenSaver_inlines.m:5: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'function_map'
Modules/_ScreenSaver_inlines.m:18: warning: return type defaults to 'int'
Modules/_ScreenSaver_inlines.m:18: warning: function declaration isn't
a prototype
Modules/_ScreenSaver_inlines.m: In function 'PyObjC_MODULE_INIT':
Modules/_ScreenSaver_inlines.m:19: warning: implicit declaration of
function 'PyObjC_MODULE_CREATE'
Modules/_ScreenSaver_inlines.m:19: warning: initialization makes
pointer from integer without a cast
Modules/_ScreenSaver_inlines.m:21: warning: implicit declaration of
function 'PyObjC_INITERROR'
Modules/_ScreenSaver_inlines.m:25: warning: implicit declaration of
function 'PyObjC_CreateInlineTab'
Modules/_ScreenSaver_inlines.m:25: error: 'function_map' undeclared
(first use in this function)
Modules/_ScreenSaver_inlines.m:25: error: (Each undeclared identifier
is reported only once
Modules/_ScreenSaver_inlines.m:25: error: for each function it appears in.)
Modules/_ScreenSaver_inlines.m:25: warning: passing argument 3 of
'PyModule_AddObject' makes pointer from integer without a cast
Modules/_ScreenSaver_inlines.m:29: warning: implicit declaration of
function 'PyObjC_INITDONE'
Modules/_ScreenSaver_inlines.m:5: error: expected '=', ',', ';', 'asm'
or '__attribute__' before 'function_map'
Modules/_ScreenSaver_inlines.m:18: warning: return type defaults to 'int'
Modules/_ScreenSaver_inlines.m:18: warning: function declaration isn't
a prototype
Modules/_ScreenSaver_inlines.m: In function 'PyObjC_MODULE_INIT':
Modules/_ScreenSaver_inlines.m:19: warning: implicit declaration of
function 'PyObjC_MODULE_CREATE'
Modules/_ScreenSaver_inlines.m:19: warning: initialization makes
pointer from integer without a cast
Modules/_ScreenSaver_inlines.m:21: warning: implicit declaration of
function 'PyObjC_INITERROR'
Modules/_ScreenSaver_inlines.m:25: warning: implicit declaration of
function 'PyObjC_CreateInlineTab'
Modules/_ScreenSaver_inlines.m:25: error: 'function_map' undeclared
(first use in this function)
Modules/_ScreenSaver_inlines.m:25: error: (Each undeclared identifier
is reported only once
Modules/_ScreenSaver_inlines.m:25: error: for each function it appears in.)
Modules/_ScreenSaver_inlines.m:25: warning: passing argument 3 of
'PyModule_AddObject' makes pointer from integer without a cast
Modules/_ScreenSaver_inlines.m:29: warning: implicit declaration of
function 'PyObjC_INITDONE'
lipo: can't open input file:
/var/folders/Et/EtxW7vM0HTaS6E9e2To88E+++TI/-Tmp-//ccuckfe1.out (No
such file or directory)
error: Setup script exited with error: command 'gcc-4.2' failed with
exit status 1

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.