Skip to content

'lxml & xmlsec libxml2 library version mismatch #351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jimjag opened this issue Apr 11, 2025 · 1 comment
Open

'lxml & xmlsec libxml2 library version mismatch #351

jimjag opened this issue Apr 11, 2025 · 1 comment

Comments

@jimjag
Copy link
Collaborator

jimjag commented Apr 11, 2025

Not sure why I am unable to get past this error... I am forcing the use of lxml2 2.13.16 but when I build it seems to be pulling (or assuming) that I am using a 2.12.x version of the library. Note that the 2.12.x comes from reading the "LIBXML_VERSION" attribute...

  version = PyObject_GetAttrString(lxml, "LIBXML_VERSION")

E xmlsec.Error: (100, 'lxml & xmlsec libxml2 library version mismatch')
=========================================================== short test summary info ============================================================
ERROR tests/test_constants.py - xmlsec.InternalError: (-1, 'lxml & xmlsec libxml2 library version mismatch')
ERROR tests/test_ds.py - xmlsec.Error: (100, 'lxml & xmlsec libxml2 library version mismatch')
ERROR tests/test_enc.py - xmlsec.Error: (100, 'lxml & xmlsec libxml2 library version mismatch')
ERROR tests/test_keys.py - xmlsec.Error: (100, 'lxml & xmlsec libxml2 library version mismatch')
ERROR tests/test_main.py - xmlsec.Error: (100, 'lxml & xmlsec libxml2 library version mismatch')
ERROR tests/test_pkcs11.py - xmlsec.Error: (100, 'lxml & xmlsec libxml2 library version mismatch')
ERROR tests/test_templates.py - xmlsec.Error: (100, 'lxml & xmlsec libxml2 library version mismatch')
ERROR tests/test_tree.py - xmlsec.Error: (100, 'lxml & xmlsec libxml2 library version mismatch')
ERROR tests/test_type_stubs.py - xmlsec.Error: (100, 'lxml & xmlsec libxml2 library version mismatch')
ERROR tests/test_xmlsec.py - xmlsec.Error: (100, 'lxml & xmlsec libxml2 library version mismatch')
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================== 10 errors in 0.62s ==============================================================

(this is debug output of printf("%ld %ld %ld %ld\n", PyLong_AsLong(major), PyXmlSec_GetLibXmlVersionMajor(), PyLong_AsLong(minor), PyXmlSec_GetLibXmlVersionMinor());):

2 2 12 13
2 2 12 13
2 2 12 13
2 2 12 13
2 2 12 13
2 2 12 13
2 2 12 13
2 2 12 13
2 2 12 13
2 2 12 13

@jimjag
Copy link
Collaborator Author

jimjag commented Apr 11, 2025

This seems to be because we are pulling in lxml 5.3.2, which Binary wheels use libxml2 2.12.10 and libxslt 1.1.42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant