eNMS-automation / eNMS

An enterprise-grade vendor-agnostic network automation platform.

Home Page:https://www.enms.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with services and workflow if you're not using flask_wtf-v1.0.1 with eNMS 4.2.0

SaneiSaya opened this issue · comments

After a fresh install, I was running flask_wtf 2.3.3 and I couldn't modify anything under services or workflow builder. I was receiving the following error:

File "/xxx/xxx/server.py", line 153, in decorated_function
result = function(*args, **kwargs)
File "/xxx/xxx/server.py", line 366, in route
if not form.validate_on_submit():
File "/usr/local/lib/python3.9/site-packages/flask_wtf/form.py", line 86, in validate_on_submit
return self.is_submitted() and self.validate(extra_validators=None)
TypeError: validate() got an unexpected keyword argument 'extra_validators'

The fix for this is to roll back to flask_wtf v1.0.1. Can we have this hardcoded in the requrements.txt?

pip3 install flask_wtf==v1.0.1