ImportError: No module named saml2.auth

Viewed 6316

I'm trying to build a SAML authentication mechanism in Python using the OneLogin module, but I keep getting this error: ImportError: No module named saml2.auth

I have followed the steps listed here:

https://github.com/onelogin/python3-saml

and installed dependencies as well but i can't install xmlsec library and it says Failed building wheel for xmlsec and failed with error code 1. (I have done pip install wheel as well)

Any suggestions how to get around this error?

3 Answers

Solved by:

sudo pip install python3-saml

xmlsec (a dependency of python3-saml) had some installation issues on version previous of 1.3.5.

v1.3.5 solved those issues

All i needed was the latest version with everything fixed from here: github.com/mehcode/python-xmlsec/releases/tag/1.3.5

Related