You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package requires Flask-WTF>=1.0.0, but it breaks with the latest Flask-WTF 1.1.0 released yesterday, where an error message TypeError: validate() takes 1 positional argument but 2 were given is obtained from this line:
The failure is due to a change introduced in wtforms/flask-wtf#479. To fix the problem, an optional argument extra_validators=None should be added to each of the validate methods in forms.py. Alternatively, add **kwargs to the validate methods as done in Flask-Middleware/flask-security#566. Until a new fixed release is made of this package, it will be necessary to pin Flask-WTF<1.1.0.
The text was updated successfully, but these errors were encountered:
the issue was introduced by broken compatibility in flask-wtf v1.1.0. There is already patch (v1.1.1) provided which fixes the method signature, therefore I am closing the issue
Flask-WTF 1.1.1 gives an error message TypeError: validate() got an unexpected keyword argument 'extra_validators'. Please reopen this issue. You need to replace validate(self) with validate(self, **kwargs) four times in forms.py and release a new version of this package, then bump the version installed by invenio-accounts. See also comments in wtforms/flask-wtf#547.
This issue was addressed by PR #52 and I confirm that the release v3.1.4 works. You might want to change Flask-Security-Invenio>=3.1.3 to Flask-Security-Invenio>=3.1.4 in the next release of invenio-accounts.
This package requires
Flask-WTF>=1.0.0
, but it breaks with the latest Flask-WTF 1.1.0 released yesterday, where an error messageTypeError: validate() takes 1 positional argument but 2 were given
is obtained from this line:flask-security-fork/flask_security/views.py
Line 52 in 3001b07
The failure is due to a change introduced in wtforms/flask-wtf#479. To fix the problem, an optional argument
extra_validators=None
should be added to each of thevalidate
methods informs.py
. Alternatively, add**kwargs
to thevalidate
methods as done in Flask-Middleware/flask-security#566. Until a new fixed release is made of this package, it will be necessary to pinFlask-WTF<1.1.0
.The text was updated successfully, but these errors were encountered: