eNMS-automation / eNMS

An enterprise-grade vendor-agnostic network automation platform.
https://www.enms.io/
GNU General Public License v3.0
812 stars 162 forks source link

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

Closed SaneiSaya closed 8 months ago

SaneiSaya commented 1 year ago

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