[Pyrex] various problem working with 0.9.6.3

Robert Bradshaw robertwb at math.washington.edu
Mon Oct 22 19:49:27 CEST 2007


Did it compile with previous versions of Pyrex?

On Oct 22, 2007, at 7:08 AM, Christian Meesters wrote:

> 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
>
> _______________________________________________
> Pyrex mailing list
> Pyrex at lists.copyleft.no
> http://lists.copyleft.no/mailman/listinfo/pyrex




More information about the Pyrex mailing list