[lxml-dev] Build problems under MacOS-X
Stefan Behnel
stefan_ml at behnel.de
Mon Feb 4 19:43:08 CET 2008
Hi,
Michael Guntsche wrote:
> I upgraded Cython to 0.9.6.11 and recompiled lxml. Now make test, no
> longer segfaults
[...]
> everything seems to work normally, at least the features
> I use (validation and xpath most often).
Ah, that's good. You actually need Cython 0.9.6.11b(!) for a reliable install,
but to keep these minor versions from biting people, I just updated the build
page to make clear you'd better not install Cython for a normal release build,
but to use the provided (and tested) C sources instead.
http://codespeak.net/lxml/build.html#cython
> but I get several errors in test_elementtree.py
>
> Examples:
>
> ERROR: test_feed_parser (lxml.tests.test_elementtree.ElementTreeTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/unittest.py",
> line 260, in run
> testMethod()
> File
> "/Users/maru/source/cvs+svn/lxml/src/lxml/tests/test_elementtree.py",
> line 3011, in test_feed_parser
> parser = self.etree.XMLParser()
> AttributeError: 'module' object has no attribute 'XMLParser'
That's just fine. The compatibility tests require ET 1.3 (currently only in
SVN) to run. I'll just have to check why these tests aren't disabled for older
(c)ET versions yet.
Stefan
More information about the lxml-dev
mailing list