Closed PhilippeMoesch closed 4 months ago
Try install lxml 5.2.2 with xmlsec-1.3.14 but without using:
pip install --force-reinstall --no-binary lxml
As you can see in the CI, an Ubuntu with Python 3.10.14 has no issues: https://github.com/SAML-Toolkits/python3-saml/actions/runs/9636647940/job/26574856311
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