docker-compose-ecs-sample icon indicating copy to clipboard operation
docker-compose-ecs-sample copied to clipboard

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

Open lawrencechen0921 opened this issue 3 years ago • 2 comments

When I try to do this lab today and type docker compose up -dand use docker compose logs to check my application is work or not, and I got the information said ImportError: cannot import name 'escape' from 'jinja2' , so I decided to search on stackoverflow, and I change backend requirement.txt Flask version to 2.1.0 but it still not work.

Is there some issues happens to this project!

Thanks, Lawrence

lawrencechen0921 avatar Apr 19 '22 15:04 lawrencechen0921

I solved to change Flask version to 2.1.0 on 20.Jun I just shared my environment I used python 3.8 version and I just removed import os in backend hello.py file. becuase there are same commands. If you share your environment, It's more helpful to solve issue.

seodea avatar Jun 20 '22 08:06 seodea

Thanks! It solved!

lawrencechen0921 avatar Jun 21 '22 20:06 lawrencechen0921