Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'escape' from 'jinja2' #68

Open
elmiomar opened this issue May 17, 2022 · 1 comment
Open

ImportError: cannot import name 'escape' from 'jinja2' #68

elmiomar opened this issue May 17, 2022 · 1 comment

Comments

@elmiomar
Copy link

OS: Windows 10
Python version: 3.10.0

Traceback (most recent call last):
  File "C:\Users\elmim\dev\globus-sample-data-portal\run_portal.py", line 3, in <module>
    from portal import app
  File "C:\Users\elmim\dev\globus-sample-data-portal\portal\__init__.py", line 1, in <module>
    from flask import Flask
  File "C:\Users\elmim\dev\globus-sample-data-portal\venv\lib\site-packages\flask\__init__.py", line 14, in <module>
    from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (C:\Users\elmim\dev\globus-sample-data-portal\venv\

Updating Flask in requirements.txt to version 2.1.x fixes this issue.

@JoshuaSBrown
Copy link

I'm also seeing this issue. @elmiomar thanks for posting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants