Skip to content
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

Unable to build xmlsec - dev team says to notify this package's dev team for solution #359

Open
sourcematters opened this issue Jun 12, 2023 · 5 comments

Comments

@sourcematters
Copy link

Hi python3-saml dev team - have been unable to pip install python3-saml due to (from my not-great understanding) an incompatibility with xmlsec/libxmlsec1.

When I raised the issue with xmlsec (lsh123/xmlsec#427), they advised to report issue to this dev team.

Can you help?

I'm on an M1 with python 3.11.2 and attempting pip install of python3-saml which is failing to build a wheel for xmlsec.

@garma83
Copy link

garma83 commented Jun 13, 2023

Also refer to xmlsec/python-xmlsec#254 (comment)

@pitbulk
Copy link
Contributor

pitbulk commented Jun 14, 2023

@sourcematters, Sorry but it seems there is some confusion.

python3-saml uses the xmlsec library, and its repository on github is:
https://github.com/xmlsec/python-xmlsec
not:
https://github.com/lsh123/xmlsec

@garma83 provided you a link to the right thread and it seems some collaborators provided ways to install it properly.

@cro
Copy link

cro commented Aug 18, 2023

python-xmlsec depends on libxmlsec1. libxmlsec1 >= 1.3 no longer supports SOAP, the SOAP functionality has been removed. Versions of libxmlsec1 that do support SOAP are no longer maintained. I think the OP was raising the issue because as Linux distros begin to package the later libxmlsec1, python3-saml will not be installable. The libxmlsec1 author stated that SOAP support was added "as part of an abandoned project to support SAML" (see lsh123/xmlsec#427 (comment)). The authors of python-xmlsec are approaching this by removing SOAP support in their package, but this is proving to be challenging (xmlsec/python-xmlsec#252). If python3-saml uses the deprecated SOAP functionality we will either have to pin environments to libxmlsec1<1.3 or find another way to parse the SOAP.

Maybe a comment in this project's README might help future users?

@mdgreenwald
Copy link

@sourcematters, Sorry but it seems there is some confusion.

python3-saml uses the xmlsec library, and its repository on github is: https://github.com/xmlsec/python-xmlsec not: https://github.com/lsh123/xmlsec

@garma83 provided you a link to the right thread and it seems some collaborators provided ways to install it properly.

@pitbulk While there are workarounds in that thread, they are by no means sustainable and they don't address the underlying incompatibility with libxmlsec1 1.3. A closer look reveals that https://github.com/xmlsec/python-xmlsec appears to be abandoned by the sole maintainer. The readme shows numerous builds failing, several threads have comments requesting that the issue get fixed with no acknowledgement from the maintainer, its not clear that there are any plans to continue maintaining that project. Does the python3-saml project have plans to mitigate this dependency in the future? Or perhaps to fork and maintain a new version? Thanks.

@pitbulk
Copy link
Contributor

pitbulk commented Feb 8, 2024

No plans for now to migrate from python-xmlsec, but the easiest approach I see is to reuse the xmlsec library that was used in python-saml, dm.xmlsec.binding, but not sure if Dieter Maurer is actively maintaining it, so we could be in a similar situation, I don't see recent releases, but a comment from him on a forum

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

5 participants