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

TypeError with flask-wtf v1.1 #392

Open
d-k-7 opened this issue Jan 18, 2023 · 1 comment
Open

TypeError with flask-wtf v1.1 #392

d-k-7 opened this issue Jan 18, 2023 · 1 comment

Comments

@d-k-7
Copy link

d-k-7 commented Jan 18, 2023

The following exception is raised whenever a form is submitted:

/update/ansible_playbook_service (500)
Traceback (most recent call last):
  File "/projects/enms/eNMS/eNMS/server.py", line 153, in decorated_function
    result = function(*args, **kwargs)
  File "/projects/enms/eNMS/eNMS/server.py", line 366, in route
    if not form.validate_on_submit():
  File "/projects/enms/lib/python3.9/site-packages/flask_wtf/form.py", line 86,
in validate_on_submit
    return self.is_submitted() and self.validate(extra_validators=extra_validators)
TypeError: validate() got an unexpected keyword argument 'extra_validators'

workaround I used:
pip3 install flask_wtf==v1.0.1 after installing requirements.txt

@SaneiSaya
Copy link

Thank you for this. I was having issue creating new services and workflows and this was the fix.

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

2 participants