Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

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

Description

@bizimunda

I am getting this error message

Traceback (most recent call last):
File "/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/run.py", line 2, in
from app import create_app
File "/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/app/init.py", line 1, in
from flask import Flask
File "/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/.venv/lib/python3.9/site-packages/flask/init.py", line 14, in
from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (/Users/hamid/GitLab/Gitlab_Techworld_nina/python-demoapp/src/.venv/lib/python3.9/site-packages/jinja2/init.py)
make: *** [run] Error 1

and this is what I have in my requirement file

Flask==2.1.0
py-cpuinfo==7.0.0
psutil==5.8.0
gunicorn==20.1.0
black==20.8b1
flake8==3.9.0
pytest==7.1.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions