[Setup] Re: Plone3 easy_install failure at ZopeSkel compilation stage

Martin Aspeli optilude at gmx.net
Wed Jan 16 23:52:59 UTC 2008


Gary Koskenmaki wrote:
> Hi All,
> 
> I attempted to do an easy_install of Plone3 from scratch using the
> easy_install method and it failed at the first step when trying to
> install ZopeSkel.  Here is the output and the failure message.  
> 
> Can anyone point me in the right direction?  
> 
> Job:/mnt/sata/plone3# easy_install ZopeSkel
> Searching for ZopeSkel
> Best match: ZopeSkel 1.4
> Processing ZopeSkel-1.4-py2.4.egg
> ZopeSkel 1.4 is already the active version in easy-install.pth
> 
> Using /mnt/sata/plone3/python2.4/site-packages/ZopeSkel-1.4-py2.4.egg
> Processing dependencies for ZopeSkel
> Searching for Cheetah
> Reading http://pypi.python.org/simple/Cheetah/
> Reading http://www.CheetahTemplate.org/
> Reading http://sourceforge.net/project/showfiles.php?group_id=28961
> Best match: Cheetah 2.0.1
> Downloading
> http://downloads.sourceforge.net/cheetahtemplate/Cheetah-2.0.1.tar.gz?download
> Processing Cheetah-2.0.1.tar.gz
> Running Cheetah-2.0.1/setup.py -q bdist_egg
> --dist-dir /tmp/easy_install-H561cB/Cheetah-2.0.1/egg-dist-tmp-zB_V8v
> warning: no files found matching '*.cfg'
> warning: no files found matching 'examples'
> warning: no files found matching 'docs'
> warning: no files found matching 'bin'
> warning: no files found matching '*' under directory 'docs'
> warning: no files found matching '*' under directory 'examples'
> warning: no previously-included files matching '*.pyc' found under
> directory 'src'
> warning: no previously-included files matching '*~' found under
> directory 'src'
> warning: no previously-included files matching '*.aux' found under
> directory 'src'
> warning: no previously-included files matching '*~' found under
> directory 'docs'
> warning: no previously-included files matching '*.aux' found under
> directory 'docs'
> src/_namemapper.c:15:58: error: Python.h: No such file or directory
> src/_namemapper.c:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:75: error: expected declaration specifiers or ‘...’
> before ‘PyObject’
> src/_namemapper.c: In function ‘setNotFoundException’:
> src/_namemapper.c:79: error: ‘PyObject’ undeclared (first use in this
> function)
> src/_namemapper.c:79: error: (Each undeclared identifier is reported
> only once
> src/_namemapper.c:79: error: for each function it appears in.)
> src/_namemapper.c:79: error: ‘exceptionStr’ undeclared (first use in
> this function)
> src/_namemapper.c:80: warning: implicit declaration of function
> ‘Py_BuildValue’
> src/_namemapper.c:81: warning: implicit declaration of function
> ‘PyString_ConcatAndDel’
> src/_namemapper.c:86: warning: implicit declaration of function
> ‘PyObject_CallFunctionObjArgs’
> src/_namemapper.c:86: error: ‘pprintMod_pformat’ undeclared (first use
> in this function)
> src/_namemapper.c:86: error: ‘namespace’ undeclared (first use in this
> function)
> src/_namemapper.c:88: warning: implicit declaration of function
> ‘PyErr_SetObject’
> src/_namemapper.c:88: error: ‘NotFound’ undeclared (first use in this
> function)
> src/_namemapper.c:89: warning: implicit declaration of function
> ‘Py_DECREF’
> src/_namemapper.c: At top level:
> src/_namemapper.c:93: error: expected declaration specifiers or ‘...’
> before ‘PyObject’
> src/_namemapper.c: In function ‘wrapInternalNotFoundException’:
> src/_namemapper.c:95: error: ‘PyObject’ undeclared (first use in this
> function)
> src/_namemapper.c:95: error: ‘excType’ undeclared (first use in this
> function)
> src/_namemapper.c:95: error: ‘excValue’ undeclared (first use in this
> function)
> src/_namemapper.c:95: warning: left-hand operand of comma expression has
> no effect
> src/_namemapper.c:95: error: ‘excTraceback’ undeclared (first use in
> this function)
> src/_namemapper.c:95: warning: left-hand operand of comma expression has
> no effect
> src/_namemapper.c:95: error: ‘isAlreadyWrapped’ undeclared (first use in
> this function)
> src/_namemapper.c:95: warning: left-hand operand of comma expression has
> no effect
> src/_namemapper.c:99: warning: implicit declaration of function
> ‘PyErr_Occurred’
> src/_namemapper.c:99: warning: implicit declaration of function
> ‘PyErr_GivenExceptionMatches’
> src/_namemapper.c:99: error: ‘NotFound’ undeclared (first use in this
> function)
> src/_namemapper.c:100: warning: implicit declaration of function
> ‘PyErr_Fetch’
> src/_namemapper.c:101: warning: implicit declaration of function
> ‘PyObject_CallMethod’
> src/_namemapper.c:104: warning: implicit declaration of function
> ‘PyInt_AsLong’
> src/_namemapper.c:112: error: ‘pprintMod_pformat’ undeclared (first use
> in this function)
> src/_namemapper.c:112: error: ‘namespace’ undeclared (first use in this
> function)
> src/_namemapper.c:117: warning: implicit declaration of function
> ‘PyErr_Restore’
> src/_namemapper.c: In function ‘getNameChunks’:
> src/_namemapper.c:134: warning: implicit declaration of function
> ‘PyErr_SetString’
> src/_namemapper.c:134: error: ‘TooManyPeriods’ undeclared (first use in
> this function)
> src/_namemapper.c: At top level:
> src/_namemapper.c:153: error: expected ‘)’ before ‘*’ token
> src/_namemapper.c:165: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:182: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:237: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:251: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:285: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:338: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:405: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:453: error: array type has incomplete element type
> src/_namemapper.c:454: error: ‘namemapper_valueForKey’ undeclared here
> (not in a function)
> src/_namemapper.c:455: error: ‘PyCFunction’ undeclared here (not in a
> function)
> src/_namemapper.c:455: error: expected ‘}’ before
> ‘namemapper_valueForName’
> src/_namemapper.c:456: error: expected ‘}’ before
> ‘namemapper_valueFromSearchList’
> src/_namemapper.c:457: error: expected ‘}’ before
> ‘namemapper_valueFromFrame’
> src/_namemapper.c:458: error: expected ‘}’ before
> ‘namemapper_valueFromFrameOrSearchList’
> src/_namemapper.c:467: warning: return type defaults to ‘int’
> src/_namemapper.c: In function ‘DL_EXPORT’:
> src/_namemapper.c:467: error: expected declaration specifiers before
> ‘init_namemapper’
> src/_namemapper.c:486: error: expected ‘{’ at end of input
> error: Setup script exited with error: command 'gcc' failed with exit
> status 1

What platform are you on?

Which version of Python are you using? Did you compile it yourself or 
use a system Python? Do you have the headers installed?

Martin

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book




More information about the Setup mailing list