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

Flask version 1.1.2 #9

Open
msris108 opened this issue Apr 16, 2023 · 0 comments
Open

Flask version 1.1.2 #9

msris108 opened this issue Apr 16, 2023 · 0 comments

Comments

@msris108
Copy link

  • Jinja is a dependency of Flask and Flask V1.X.X uses the escape module from Jinja, however recently support for the escape module was dropped in newer versions of Jinja.

  • To fix this issue, simply update to the newer version of Flask V2.X.X in your requirements.txt where Flask no longer uses the escape module from Jinja.

Simple fix: bump Flask=1.1.2 to Flask==2.2.2

Traceback (most recent call last):
  File "C:\Users\srim2\Documents\Personal\projects\prometheus-data-generator\prometheus_data_generator\main.py", line 9, in <module>
    from flask import Flask, Response
  File "C:\Users\srim2\Anaconda3\lib\site-packages\flask\__init__.py", line 14, in <module>
    from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (C:\Users\srim2\Anaconda3\lib\site-packages\jinja2\__init__.py)
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

1 participant