pallets / jinja

A very fast and expressive template engine.
https://jinja.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
10.31k stars 1.62k forks source link

cannot import name 'escape' from 'jinja2' #1648

Closed manand881 closed 2 years ago

manand881 commented 2 years ago

the latest version of jinja2 was installed as a dependency by the below mentioned code snippet which yielded the following error

code snippet

import os try: from werkzeug.utils import secure_filename from flask import * from modules import * from bot import * from mongoatlas import * from flask_cors import CORS, cross_origin except ImportError as e: print("\n[INFO] One or more modules are missing.\n") print("Thw following error occured \n",e)

error

[INFO] One or more modules are missing.

Thw following error occured cannot import name 'escape' from 'jinja2' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/jinja2/init.py)

davidism commented 2 years ago

Duplicate of #1626