On Wed, Sep 20, 2017 at 08:39:35AM +0200, Stefan Behnel wrote:
Ken Moffat schrieb am 19.09.2017 um 21:56:
testing 4.0.0 I'm getting the following error in with both python2 and python3 on x86_64 linux (LFS : gcc-7.2, python-2.7.13, python-3.6.2, with libxml2-2.9.4, libxslt-1.1.29 AND on another machine with libxml2-2.9.5, libxslt-1.1.30 with a fix so that xslt-config --cflags works again), both with linux-4.13.1.
I will admit that I take a jaundiced view of testsuites, but now that I've read your page on building from source I see you want to know about failures ;)
Thanks. Just to be sure, can you confirm that the following schema error also occurs on the system that uses libxml2 2.9.5? And that it really uses that version? See lxml.etree.LIBXML_VERSION and the version list during the test run.
ken@ac4tv /tmp $xml2-config --version 2.9.5 I can't find lxml.etree.LIBXML_VERSION and make test only shows the libxslt version: python setup.py build_ext -i --warnings --with-coverage Building lxml version 4.0.0. Building without Cython. Using build configuration of libxslt 1.1.30 Building against libxml2/libxslt in the following directory: /usr/lib Hmm, this time python2 passed (1787 tests, no reported errors, status 0), And similarly python3 passed all 1800 tests. So, no, I can't confirm the error still occurs - and looking back, it only occurred in manual testing before I did a scripted install as root (including running the tests as root, which perhaps makes the test_etree_parse errors more likely). On my log from that install on this machine, 2.7 and 3.6 gave errors for the test_etree_parse_io_error x2, the earlier manual testing only failed that xmlschema test in both 2.7 and 3.3.
ERROR: test_xmlschema_parse_fixed_attributes (lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.6/unittest/case.py", line 59, in testPartExecutor yield [...]
There are known schema bugs in 2.9.4, although I keep forgetting which errors they produce. May or may not be related.
Stefan
The only difference from when I first ran the builds on this newer system is that I have now installed scour (python2 version, but ISTR you can only have one version of htat) and inkscape. ĸen -- Truth, in front of her huge walk-in wardrobe, selected black leather boots with stiletto heels for such a barefaced truth. - Unseen Academicals