Package Details: python2-lxml 4.9.4-3

Git Clone URL: https://aur.archlinux.org/python2-lxml.git (read-only, click to copy)
Package Base: python2-lxml
Description: Python2 binding for the libxml2 and libxslt libraries
Upstream URL: https://lxml.de/
Licenses: custom, BSD
Submitter: patlefort
Maintainer: patlefort
Last Packager: patlefort
Votes: 10
Popularity: 0.016367
First Submitted: 2021-06-22 01:52 (UTC)
Last Updated: 2024-06-16 13:11 (UTC)

Dependencies (9)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

patlefort commented on 2023-07-15 21:52 (UTC)

It builds fine for me with libxml2 package, only some tests are problematic. I tested libxml2-2.9 and some tests are also failing. Unfortunately these are upstream problems, not much that I can do. If you are having build issues, I would suggest to build in a clean chroot and see if you are still having the issue. You can then investigate what is causing it in your environment.

vagelis commented on 2023-07-15 17:19 (UTC)

@is1 thanx for the suggestion. Tried it but did not work unfortunately

is1 commented on 2023-07-11 13:18 (UTC) (edited on 2023-07-11 16:32 (UTC) by is1)

To fix the build error, install libxml2-2.9 and put env XML2_CONFIG=xml2-config-2.9 before both invocations of python2 setup.py in the PKGBUILD file, or find some other way to make setup.py use the old libxml2 version.

patlefort commented on 2023-07-05 08:15 (UTC)

I don't know what are they doing but version 4.9.3 got unreleased. I'll wait a bit to see if they re-release it again or else revert back to 4.9.2.

patlefort commented on 2023-07-05 01:35 (UTC)

Some test is failing, you can disable testing and install regardless. Looks like it's already reported a while ago but not fixed upstream: https://bugs.launchpad.net/lxml/+bug/2016939

Tyrin.price commented on 2023-07-04 23:46 (UTC)

Can't build:

[paste] 1945/1946 ( 99.9%): txt (extensions)nsmap (lxml.tests.test_xslt.ETreeXSLTExtElementTestCase)
1946/1946 (100.0%): txt (xpathxslt)
Doctest: xpathxslt.txt
====================================================================== ERROR: test_html_prefix_nsmap (lxml.tests.test_etree.ETreeOnlyTestCase)


Traceback (most recent call last): File "/usr/lib/python2.7/unittest/case.py", line 329, in run testMethod() File "/home/tyrin/.cache/paru/clone/python2-lxml/src/lxml-lxml-4.9.3/src/lxml/tests/test_etree.py", line 3076, in test_html_prefix_nsmap self.assertEqual({}, el.nsmap) AttributeError: 'NoneType' object has no attribute 'nsmap'


Ran 1946 tests in 4.402s

FAILED (errors=1) ==> ERROR: A failure occurred in check(). Aborting... error: failed to build 'python2-lxml-4.9.3-1': error: packages failed to build: python2-lxml-4.9.3-1 [/paste]

Any help?

brianzbr commented on 2022-11-04 14:28 (UTC)

New to Arch so please bear with me... whenever I try to build this it gets to this step and then seems to just get stuck there indefinitely. I've let it sit on this for up to an hour:

gcc -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc/lxml -Isrc/lxml/includes -I/usr/include/libxml2 -Isrc -I/usr/include/python2.7 -c src/lxml/etree.c -o build/temp.linux-x86_64-2.7/src/lxml/etree.o -w

Here's the full output leading up to that: https://pastebin.com/ezKPKiJy

Any suggestions?

0b100100 commented on 2022-09-05 20:40 (UTC)

This solves the issue. All tests are in fact successfully completed. Thank you.

patlefort commented on 2022-09-05 12:04 (UTC)

I've removed python2-html5lib from checkdepends as it appears that it's not required.

0b100100 commented on 2022-09-04 21:50 (UTC) (edited on 2022-09-04 22:48 (UTC) by 0b100100)

Hi. Could you please disable the check for now? Some required sub-dependencies like python2-six and python2-packaging got dropped recently.

Edit: Please ignore my request above. I just pushed the dropped python2-six package. A remaining issue is the missing python2-packaging package, which is required by some sub-dependencies for their checks. But this is certainly not your issue. ;)