$ python examples/sqla-custom-inline-forms/app.py
Traceback (most recent call last):
File "REDACTED\Documents\Python Scripts\flask-admin\examples\sqla-custom-inline-forms\app.py", line 10, in <module>
from wtforms import fields
File "REDACTED\miniconda3\envs\flask-admin\lib\site-packages\wtforms\__init__.py", line 11, in <module>
from wtforms import validators, widgets
File "REDACTED\miniconda3\envs\flask-admin\lib\site-packages\wtforms\widgets\__init__.py", line 1, in <module>
from wtforms.widgets.core import *
File "REDACTED\miniconda3\envs\flask-admin\lib\site-packages\wtforms\widgets\core.py", line 3, in <module>
from cgi import escape
ImportError: cannot import name 'escape' from 'cgi' (REDACTED\miniconda3\envs\flask-admin\lib\cgi.py)
Running the example gives the following error.
Versions:
I notice that WTForms is hard-coded to version 1.0.5 in the requirements.txt file. Maybe this is fixed in latter versions of WTForms?
Edit: the example seem to run fine with WTForms 2.3.3