-
Notifications
You must be signed in to change notification settings - Fork 102
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
Facing the xmlsec Error: (100, 'lxml & xmlsec libxml2 library version mismatch') #324
Comments
Duplicate for #320 , isn't it? |
humitos
added a commit
to readthedocs/readthedocs.org
that referenced
this issue
Mar 18, 2025
xmlsec is a dependecy from python3-saml which is required by django-allauth. We have to pin it because the underlying `libxml2-dev` package installed at system level is incompatible with the Python version More info xmlsec/python-xmlsec#324
stsewd
pushed a commit
to readthedocs/readthedocs.org
that referenced
this issue
Mar 18, 2025
xmlsec is a dependecy from python3-saml which is required by django-allauth. We have to pin it because the underlying `libxml2-dev` package installed at system level is incompatible with the Python version More info xmlsec/python-xmlsec#324
stsewd
pushed a commit
to readthedocs/readthedocs.org
that referenced
this issue
Mar 18, 2025
xmlsec is a dependecy from python3-saml which is required by django-allauth. We have to pin it because the underlying `libxml2-dev` package installed at system level is incompatible with the Python version More info xmlsec/python-xmlsec#324
stsewd
pushed a commit
to readthedocs/readthedocs.org
that referenced
this issue
Mar 18, 2025
xmlsec is a dependecy from python3-saml which is required by django-allauth. We have to pin it because the underlying `libxml2-dev` package installed at system level is incompatible with the Python version More info xmlsec/python-xmlsec#324
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am facing the following error when deploying my Django (version 4.1) Backend, I have the following Dockerfile (some non-relevant parts omitted) and need to install python3-saml (which has dependencies like lxml and xmlsec).

The documentation (https://github.com/SAML-Toolkits/python3-saml/blob/master/docs/SAML_Python3_Toolkit_Guide.pdf) mentions the following:
Hence I added the command in the Dockerfile.
I am able to build it without problem but upon deployment, I get the following error:
I am not sure which library version is expected in this case, I have tried with
pip install --no-binary lxml==4.6.3 lxml==4.6.3 --force-reinstall
instead, as well as with version 4.9.3 (as seen in other recent threads) but with no success. (pip install python3-saml installs lxml version 5.2.2).The requirement.txt file looks as follows:
Something else that I have tried is to add the following in the requirement.txt, in the following order:
and at the same time remove
The text was updated successfully, but these errors were encountered: