Open taesungh opened 11 months ago
Ahh I wish I spent a little longer searching: a similar issue was reported in #360, and this issue seems to be resolved when installing lxml not from binary as noted in the project README
RUN pip install python3-saml --no-binary lxml
See #389 for ongoing discussion.
@taesungh I was struggling with this issue, and thanks to you creating it, I reached the workaround 🙏🏼
I've been using python3-saml for a while and recently encountered a new major issue on fresh installations which seems to be caused by the lxml toolkit for Python recently releasing version 5.0.0. The program encounters a segmentation fault when processing the ACS endpoint or generating metadata.
This core issue might be with xmlsec/python-xmlsec, but I'm not familiar with the inner workings of
xmlsec.template.create
to definitively say.Minimal Reproducible Example
Dockerfile
Python program in
main.py
Expected Behavior
The SAML metadata should be generated and printed
Actual Behavior
The metadata signing causes a segmentation fault
To produce expected behavior
Add
"lxml<5"
to thepip install
command in the Dockerfile and observe the metadata can be properly signedAdditional Information