Cythoning lxml fails on master

Hi, I just tried installing lxml from git master, but Cython fails with hundreds of errors like these: src/lxml/iterparse.pxi:123:33: 'xmlDoc' is not a type identifier src/lxml/schematron.pxi:166:53: Constructing Python tuple not allowed without gil I’m running Cython 0.15.1 and CPython 2.7.2 and 3.2.2 (same result with both.), and installing (while in the git checkout directory) with pip install -e . I could kind of make it work by taking the *.c and *.h files from the latest release. This is good enough for me to work on cssselect, but running the whole test suite segfaults at test_html_prefix_nsmap (lxml.tests.test_etree.ETreeOnlyTestCase) (I’m not surprised by this segfault. The real problem is Cython errors above.) Regards, -- Simon Sapin

Simon Sapin, 08.03.2012 13:55:
I just tried installing lxml from git master, but Cython fails with hundreds of errors like these:
src/lxml/iterparse.pxi:123:33: 'xmlDoc' is not a type identifier src/lxml/schematron.pxi:166:53: Constructing Python tuple not allowed without gil
I’m running Cython 0.15.1 and CPython 2.7.2 and 3.2.2 (same result with both.)
Yes, the latest development branch requires Cython 0.16. It hasn't been released yet, but it's close. :) You can get it from here: https://github.com/cython/cython/tarball/master Stefan

Le 08/03/2012 14:17, Stefan Behnel a écrit :
Yes, the latest development branch requires Cython 0.16. It hasn't been released yet, but it's close.:)
You can get it from here:
I’ll keep that in mind, but I’ve just finished my patch: https://github.com/lxml/lxml/pull/36 Thanks! -- Simon Sapin
participants (2)
-
Simon Sapin
-
Stefan Behnel