When I try the command:
$pybabel extract -F babel.cfg -o messages.pot .
I receive this output:
...
extracting messages from app/templates/auth/login.html (extensions="jinja2.ext.autoescape,jinja2.ext.with_")
Traceback (most recent call last):
File "/var/www/python/flask-foundation/env/bin/pybabel", line 11, in
sys.exit(main())
...
pkg_resources.extern.packaging.markers.UndefinedEnvironmentName: 'extra' does not exist in evaluation environment.
Why? I read it can depend from pip but I have the last upgraded version. This is my babel.cfg file:
[python: **.py]
[jinja2: **/templates/**.html]
extensions=jinja2.ext.autoescape,jinja2.ext.with_
I use python 3.