Open
Description
Summary:
When using python-xmlsec
(v1.3.15+) with lxml
(>=5.4.0) in Python 3.13, the following runtime error occurs:
RuntimeError: lxml & xmlsec libxml2 library version mismatch
Cause:
lxml
wheels embedlibxml2
python-xmlsec
(via wheels or source) links against system-installedlibxml2
- Mismatch occurs if these differ
Repro Steps:
pip install xmlsec==1.3.15
pip install lxml==5.4.0
run anything using both => runtime crash
Could this repo:
- Document an official compatibility matrix (e.g. tested lxml + xmlsec + Python versions)?
- Mention the need to install lxml with --no-binary lxml if using the pip wheels for xmlsec?
- Offer optional linkage to system libxml2 via env var or flag?
This would help many consumers of python3-saml, pysaml2, and other XML signature flows.
Metadata
Metadata
Assignees
Labels
No labels