[lxml-dev] svn version failed to compiled against hg version of cython
Stefan Behnel
stefan_ml at behnel.de
Wed Jun 4 12:36:12 CEST 2008
Kevin JR wrote:
> libxslt-1.1.24
> libxml2-2.6.32
> python-2.5.2
> cython-hg(482)
>
> the error message:
>
> $ python setup.py build
> Building lxml version 2.1.beta3-55506.
> Building with Cython 0.9.6.14.
> Using build configuration of libxslt 1.1.24
> Building against libxml2/libxslt in the following directory: /usr/lib
> running build
> running build_py
> running build_ext
> cythoning src/lxml/lxml.etree.pyx to src/lxml/lxml.etree.c
>
> Error converting Pyrex file to C:
> ------------------------------------------------------------
> ...
> c_attr = c_attr.next
> return attributes
>
> cdef object __RE_XML_ENCODING
> __RE_XML_ENCODING = re.compile(
> ur'^(\s*<\?\s*xml[^>]+)\s+encoding\s*=\s*"[^"]*"\s*', re.U)
> ^
> ------------------------------------------------------------
>
> /dev/shm/python-lxml/src/lxml-build/src/lxml/apihelpers.pxi:487:6:
> Expected
> ')'
I guess you are actually using an older Cython version, likely installed
with easy_install. The version number in current hg wasn't increased yet.
Stefan
More information about the lxml-dev
mailing list