-2

I am trying to run this docker-compose file for a Flask app. Facing trouble in getting the server start. Here is the error happening:

Docker-compose run result

requirements.txt

I tried different version of jinja2 but its not working!

Docker-compose run result

requirements.txt

I tried different version of jinja2 but its not working!

  • Does this answer your question? [ImportError: cannot import name 'escape' from 'jinja2'](https://stackoverflow.com/questions/71718167/importerror-cannot-import-name-escape-from-jinja2) – β.εηοιτ.βε May 02 '23 at 18:52
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community May 02 '23 at 18:58

1 Answers1

0

as speciified in the documentation change logs under version 3.1.0 you need to import escape from markupsafe as

from markupsafe import escape

sahasrara62
  • 10,069
  • 3
  • 29
  • 44