tactlabs / error-archive

All issues related to tact and tact labs work
0 stars 0 forks source link

email validator issue #8

Open rajacsp opened 4 years ago

rajacsp commented 4 years ago
[root@25e125b25bee api]# python manage.py sync_censhare_permissions
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    from api import app
  File "/srv/api/api/__init__.py", line 4, in <module>
    from api import controllers
  File "/srv/api/api/controllers/__init__.py", line 6, in <module>
    from api.decorators import authenticated, restful
  File "/srv/api/api/decorators/authenticated.py", line 3, in <module>
    from api.helpers import authentication
  File "/srv/api/api/helpers/authentication.py", line 2, in <module>
    from flask_security.core import current_user
  File "/usr/lib/python2.7/site-packages/flask_security/__init__.py", line 13, in <module>
    from .core import Security, RoleMixin, UserMixin, AnonymousUser, current_user
  File "/usr/lib/python2.7/site-packages/flask_security/core.py", line 25, in <module>
    from .forms import LoginForm, ConfirmRegisterForm, RegisterForm, \
  File "/usr/lib/python2.7/site-packages/flask_security/forms.py", line 68, in <module>
    email_validator = Email(message='INVALID_EMAIL_ADDRESS')
  File "/usr/lib/python2.7/site-packages/wtforms/validators.py", line 332, in __init__
    raise Exception("Install 'email_validator' for email validation support.")
Exception: Install 'email_validator' for email validation support.
rajacsp commented 4 years ago

sol: pip install email_validator