pkg_resources.extern.packaging.markers.UndefinedEnvironmentName Exception
See original GitHub issueWhen 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 <module> 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.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Developers - pkg_resources.extern.packaging.markers ...
pkg_resources.extern.packaging.markers.UndefinedEnvironmentName Exception ... When I try the command: $pybabel extract -F babel.cfg -o messages.pot . I receive ...
Read more >The Flask Mega-Tutorial Part XIV: Ajax - miguelgrinberg.com
In this article I'm going to take a departure from the "safe zone" of server-side development to work on a feature that has...
Read more >Python Error : No module named pkg_resources
In my case, I open hook-pkg_resources.py file from the following directory: ~/.local/lib/python3.6/site-packages/PyInstaller/hooks/.
Read more >Analysis Report setuptools-50.3.0-py3-none-any.whl
_typing import TYPE_CHECKING.from .markers import MARKER_EXPR, ... C:\Users\user\AppData\Local\Temp\uejisw5e.0zn\pkg_resources\extern\__init__.py.
Read more >autoland - Mercurial - Mozilla
third_party/python/packaging/packaging/markers.py ... 2: raise Exception( "Expected pypi-optional package to have a repercussion " 'description in the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

After upgrading setuptools (pip install --upgrade setuptools) from 20.7.0 to 35.0.1 it works now.
Not for me… I had to
pip install setuptools==39.1.0to fix this ( I was on 40.5.0 before)