Package Details: python2-lxml 4.9.4-6

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: MIT, BSD-3-Clause, GPL-2.0-only, custom:ElementTree
Submitter: patlefort
Maintainer: patlefort
Last Packager: patlefort
Votes: 9
Popularity: 0.000014
First Submitted: 2021-06-22 01:52 (UTC)
Last Updated: 2025-11-01 18:19 (UTC)

Latest Comments

1 2 3 4 5 6 Next › Last »

bruno commented on 2025-11-03 21:57 (UTC)

After updating this evening, I recompiled the package, and it worked fine now. Thank you for your help.

patlefort commented on 2025-11-01 20:20 (UTC)

@bruno: Try building in a clean container: https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot

bruno commented on 2025-11-01 20:09 (UTC)

My system is not broken and is up to date. I think this package is starting to get a bit old. In any case, thank you for the suggestion and for maintaining this package.

patlefort commented on 2025-11-01 18:07 (UTC)

To the person who flagged out-of-date: this is the latest version supported for python 2. If you want more up-to-date, don't use python 2.

patlefort commented on 2025-10-28 17:35 (UTC)

Seems like something is broken on your system. Do you have other icu libraries installed somewhere? You can check what is being loaded with ldd or lddtree from pax-utils.

bruno commented on 2025-10-27 21:50 (UTC)

Thanks a lot. but libxml2-2.9 not recompiling.

xmlschemas.c: In function 'xmlSchemaPValAttrNodeQNameValue.constprop':
xmlschemas.c:5870:12: warning: 'len' may be used uninitialized [-Wmaybe-uninitialized]
 5870 |     pref = xmlDictLookup(ctxt->dict, value, len);
      |            ^
xmlschemas.c:5833:9: note: 'len' was declared here
 5833 |     int len, ret;
      |         ^
  CCLD     xmllint
/usr/bin/ld: ./.libs/libxml2.so: undefined reference to `UCNV_TO_U_CALLBACK_STOP_76'
/usr/bin/ld: ./.libs/libxml2.so: undefined reference to `ucnv_close_76'
/usr/bin/ld: ./.libs/libxml2.so: undefined reference to `UCNV_FROM_U_CALLBACK_STOP_76'
/usr/bin/ld: ./.libs/libxml2.so: undefined reference to `ucnv_setToUCallBack_76'
/usr/bin/ld: ./.libs/libxml2.so: undefined reference to `ucnv_open_76'
/usr/bin/ld: ./.libs/libxml2.so: undefined reference to `ucnv_convertEx_76'
/usr/bin/ld: ./.libs/libxml2.so: undefined reference to `ucnv_setFromUCallBack_76'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1147: xmllint] Error 1
make[2] : on quitte le répertoire « /home/bruno/.cache/paru/clone/libxml2-2.9/src/libxml2-41a34e1f4ffae2ce401600dbb5fe43f8fe402641 »
make[1]: *** [Makefile:1474: all-recursive] Error 1
make[1] : on quitte le répertoire « /home/bruno/.cache/paru/clone/libxml2-2.9/src/libxml2-41a34e1f4ffae2ce401600dbb5fe43f8fe402641 »
make: *** [Makefile:902: all] Error 2
==> ERREUR : Une erreur s’est produite dans build().
    Abandon…

Regards

patlefort commented on 2025-10-27 20:09 (UTC)

@bruno: Try recompiling libxml2-2.9.

bruno commented on 2025-10-27 18:49 (UTC) (edited on 2025-10-27 18:52 (UTC) by bruno)

Hello, check() fails for me:

==> Lancement de check()…
Traceback (most recent call last):
  File "test.py", line 616, in <module>
    exitcode = main(sys.argv)
  File "test.py", line 553, in main
    test_cases = get_test_cases(test_files, cfg, cov=cov)
  File "test.py", line 259, in get_test_cases
    module = import_module(file, cfg, cov=cov)
  File "test.py", line 200, in import_module
    mod = __import__(modname)
  File "/home/bruno/.cache/paru/clone/python2-lxml/src/lxml-lxml-4.9.4/src/lxml/html/__init__.py", line 53, in <module>
    from .. import etree
ImportError: libicuuc.so.74: cannot open shared object file: No such file or directory
==> ERREUR : Une erreur s’est produite dans check().
    Abandon…

icu 76.1-1 on archlinux. Thank you in advance.

patlefort commented on 2025-10-19 23:23 (UTC)

check() passes with libxslt version 1.1.41 but fails with later versions. Might be a bug in libxslt, I'll have to dig more.

dreieck commented on 2025-10-19 16:54 (UTC)

check() fails for me:

[...]
1953/1953 (100.0%): txt (xpathxslt)                    
Doctest: xpathxslt.txt  
======================================================================
FAIL: txt (resolvers)
Doctest: resolvers.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/usr/lib/python2.7/doctest.py", line 2224, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for resolvers.txt
  File "/var/cache/makepkg/build/python2-lxml/src/lxml-lxml-4.9.4/doc/resolvers.txt", line 0, in txt

----------------------------------------------------------------------
File "/var/cache/makepkg/build/python2-lxml/src/lxml-lxml-4.9.4/doc/resolvers.txt", line 269, in resolvers.txt
Failed example:
    result = transform(normal_doc)
Expected:
    Traceback (most recent call last):
      ...
    XSLTApplyError: xsltLoadDocument: read rights for hoi:test denied
Got:
    Resolved url hoi:test as prefix hoi


----------------------------------------------------------------------
Ran 1953 tests in 3.866s

FAILED (failures=1)
==> ERROR: A failure occurred in check().

Regards!