question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pkg_resources.extern.packaging.markers.UndefinedEnvironmentName Exception

See original GitHub issue

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 <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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

13reactions
guoweikuangcommented, Nov 8, 2017

After upgrading setuptools (pip install --upgrade setuptools) from 20.7.0 to 35.0.1 it works now.

4reactions
trideceth12commented, Nov 9, 2018

It happens again with setuptools 39.2.0, works until 39.1.0.

Works with setuptools 40.5.0.

Not for me… I had to pip install setuptools==39.1.0 to fix this ( I was on 40.5.0 before)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found