I am new to Flask and Babel and I have just started a project which will contain several languages. After I have generated the babel.cfg file, when I attempt to extract it with the command pybabel extract -F babel.cfg -o messages.pot .
, I get the AttributeError: module 'jinja2.ext' has no attribute 'autoescape'
error.
What can be the reason for this error and how can I fix it?
Thank you