mx-moth / flask-saml2

Flask library for building SAML Service Providers and Identity Providers
MIT License
70 stars 61 forks source link

ModuleNotFoundError: No module named 'bs4' #6

Closed dagostinelli closed 5 years ago

dagostinelli commented 5 years ago

I was trying to run the samples. After a fresh install in a fresh virtualenv and then after running pip install -e .

then:

$ ./examples/idp.py
Traceback (most recent call last):
  File "./examples/idp.py", line 8, in <module>
    from tests.idp.base import CERTIFICATE, PRIVATE_KEY, User
  File "/mnt/c/Users/user_name/source/repos/flask-saml2/tests/idp/base.py", line 10, in <module>
    from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'

Solution: $ pip install bs4

Looks like the setup.py is missing something.

mx-moth commented 5 years ago

Ah, you're right! The README should also include pip install -r tests/requirements.txt to run the examples. I'll fix that now.

mx-moth commented 5 years ago

Thanks!