[Pyrex] various problem working with 0.9.6.3

Christian Meesters meesters at uni-mainz.de
Mon Oct 22 16:08:14 CEST 2007


Hoi,

I am currently updating my system and thought installing the newest
version of Pyrex would be a good idea, too.

However, I needed to add "import distutils" and a closing bracket in
line 9 of the setup-script in order to run it. And then compiling
a .pyx-file which compiled just fine before gives me a bunch of errors,
like:

In file included from src/calc.c:842:
/usr/include/python2.5/frameobject.h: At top level:
/usr/include/python2.5/frameobject.h:17: error: field ‘ob_refcnt’
declared as a function
/usr/include/python2.5/frameobject.h:17: error: field ‘ob_size’ declared
as a function
src/calc.c: In function ‘__Pyx_AddTraceback’:
src/calc.c:891: error: ‘PyObject’ has no member named ‘ob_refcnt’
src/calc.c:891: error: ‘PyObject’ has no member named ‘ob_type’
src/calc.c:892: error: ‘PyObject’ has no member named ‘ob_refcnt’
src/calc.c:892: error: ‘PyObject’ has no member named ‘ob_type’
src/calc.c:893: error: ‘PyObject’ has no member named ‘ob_refcnt’
src/calc.c:893: error: ‘PyObject’ has no member named ‘ob_type’
src/calc.c:894: error: ‘PyObject’ has no member named ‘ob_refcnt’
src/calc.c:894: error: ‘PyObject’ has no member named ‘ob_type’
src/calc.c:895: error: ‘PyObject’ has no member named ‘ob_type’
src/calc.c:896: error: ‘PyObject’ has no member named ‘ob_type’
error: command 'gcc' failed with exit status 1

for about every line in the .c-file. But I don't know whether this is
due to Pyrex or to my current installation issues (am I missing a
package?).

HTH,
Christian



More information about the Pyrex mailing list