Abdullah Farooq
Abdullah Farooq

Reputation: 143

ImportError: No module named saml2.auth

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?

Upvotes: 6

Views: 11600

Answers (3)

leo
leo

Reputation: 41

Solved by:

sudo pip install python3-saml

Upvotes: 4

Abdullah Farooq
Abdullah Farooq

Reputation: 143

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

Upvotes: 0

smartin
smartin

Reputation: 3037

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

v1.3.5 solved those issues

Upvotes: 0

Related Questions