[Setup] Easy install ZopeSkel fails

Martin Weigele martin at weigele.de
Wed Mar 2 12:54:24 UTC 2011


Am Mittwoch, 2. März 2011, um 13:35:06 schrieben Sie:
> Hi,
> 
> 2011/3/2 Martin Weigele <martin at weigele.de>
> 
> > Within a fresh ubuntu 10.10, Python 2.6.6, easy_install successfully
> > installed by wget http://peak.telecommunity.com/dist/ez_setup.py,
> > python ez_setup.py
> > 
> > [snip]
> > 
> > > error: Setup script exited with error: command 'gcc' failed with exit
> > > status 1
> 
> You should install gcc
> 
> Cheers,

Thanks Gil! Sorry I installed too many variations of virtual machines :-) so I 
forgot to install gcc this time. However, as tested before, it does not help, 
see now the correct failing trace with gcc installed, Ubuntu 10.10, python 
2.6.5 . The problem may be that recent Ubuntu distributions do not support 
different versions of Python, and it seems things do not really work out with 
the most recent versions of Python. So a workaround may be to install 
everything for 2.4 manually  - quite annoying though.

> 
> > _______________________________________________
> > Setup mailing list
> > Setup at lists.plone.org
> > https://lists.plone.org/mailman/listinfo/setup
--
> $ sudo easy_install ZopeSkel
> Searching for ZopeSkel
> Best match: ZopeSkel 2.19
> Processing ZopeSkel-2.19-py2.6.egg
> ZopeSkel 2.19 is already the active version in easy-install.pth
> Installing zopeskel script to /usr/local/bin
> 
> Using /usr/local/lib/python2.6/dist-packages/ZopeSkel-2.19-py2.6.egg
> Processing dependencies for ZopeSkel
> Searching for Cheetah>1.0,<=2.2.1
> Reading http://pypi.python.org/simple/Cheetah/
> Reading http://www.CheetahTemplate.org/
> Reading http://sourceforge.net/project/showfiles.php?group_id=28961
> Reading http://www.cheetahtemplate.org/
> Best match: Cheetah 2.2.1
> Downloading
> http://sourceforge.net/projects/cheetahtemplate/files/Cheetah/v2.2.1/Cheet
> ah-2.2.1.tar.gz/download Processing download
> Running Cheetah-2.2.1/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-bpT5Iv/Cheetah-2.2.1/egg-dist-tmp-Bz41iW 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: Datei oder Verzeichnis nicht
> gefunden 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: At top level:
> src/_namemapper.c:126: error: expected ‘)’ before ‘*’ token
> src/_namemapper.c: In function ‘getNameChunks’:
> src/_namemapper.c:162: warning: implicit declaration of function
> ‘PyErr_SetString’ src/_namemapper.c:162: error: ‘TooManyPeriods’
> undeclared (first use in this function) src/_namemapper.c: At top level:
> src/_namemapper.c:181: error: expected ‘)’ before ‘*’ token
> src/_namemapper.c:193: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token src/_namemapper.c:210: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:274: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token src/_namemapper.c:288: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:322: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token src/_namemapper.c:375: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> src/_namemapper.c:442: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘*’ token src/_namemapper.c:490: error: array type
> has incomplete element type src/_namemapper.c:491: error:
> ‘namemapper_valueForKey’ undeclared here (not in a function)
> src/_namemapper.c:492: error: ‘PyCFunction’ undeclared here (not in a
> function) src/_namemapper.c:492: error: expected ‘}’ before
> ‘namemapper_valueForName’ src/_namemapper.c:493: error: expected ‘}’
> before ‘namemapper_valueFromSearchList’ src/_namemapper.c:494: error:
> expected ‘}’ before ‘namemapper_valueFromFrame’ src/_namemapper.c:495:
> error: expected ‘}’ before ‘namemapper_valueFromFrameOrSearchList’
> src/_namemapper.c:504: warning: return type defaults to ‘int’
> src/_namemapper.c: In function ‘DL_EXPORT’:
> src/_namemapper.c:504: error: expected declaration specifiers before
> ‘init_namemapper’ src/_namemapper.c:523: error: expected ‘{’ at end of
> input
> error: Setup script exited with error: command 'gcc' failed with exit
> status 1 martin at userver2:~$


More information about the Setup mailing list