Skip to content

pkg_resources.extern.packaging.markers.UndefinedEnvironmentName Exception #501

@willypuzzle

Description

@willypuzzle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions