You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(env) cl-akshayjain:tests ajain$ pip freeze | grep Jinja2
Jinja2==3.0.3
(env) cl-akshayjain:tests ajain$ python
Python 3.7.4 (default, Sep 7 2019, 18:27:02)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from jinja2 import escape
>>> exit()
The import fails with 3.1.0 (published today)
(env) cl-akshayjain:tests ajain$ pip install -U jinja2
Collecting jinja2
Downloading Jinja2-3.1.0-py3-none-any.whl (132 kB)
|████████████████████████████████| 132 kB 1.4 MB/s
Installing collected packages: jinja2
Attempting uninstall: jinja2
Found existing installation: Jinja2 3.0.3
Uninstalling Jinja2-3.0.3:
Successfully uninstalled Jinja2-3.0.3
Successfully installed jinja2-3.1.0
(env) cl-akshayjain:tests ajain$ python
Python 3.7.4 (default, Sep 7 2019, 18:27:02)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from jinja2 import escape
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'escape' from 'jinja2' (env/lib/python3.7/site-packages/jinja2/__init__.py)
Expected Behavior:
ImportError is fixed. Please let me know if the change was intended in the latest version and this indeed is expected behavior. Thanks.
Environment:
Python version: 3.7.4
Jinja version: 3.1.0
The text was updated successfully, but these errors were encountered:
Describe how to replicate the bug.
The import works with
3.0.3
The import fails with
3.1.0
(published today)Expected Behavior:
ImportError is fixed. Please let me know if the change was intended in the latest version and this indeed is expected behavior. Thanks.
Environment:
The text was updated successfully, but these errors were encountered: