Traceback (most recent call last):
File "/Users/gaurang/Documents/Tools/Adhrit/app.py", line 4, in <module>
from flask import Flask, json, jsonify, render_template, request
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/__init__.py", line 16, in <module>
from jinja2 import Markup
ImportError: cannot import name 'Markup' from 'jinja2' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/jinja2/__init__.py)
Using Docker:
docker-compose up
Output:
WARNING: Image for service web was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating adhrit_web_1 ... done
Attaching to adhrit_web_1
web_1 | Traceback (most recent call last):
web_1 | File "/app/app.py", line 4, in <module>
web_1 | from flask import Flask, json, jsonify, render_template, request
web_1 | File "/usr/local/lib/python3.10/site-packages/flask/__init__.py", line 14, in <module>
web_1 | from jinja2 import escape
web_1 | ImportError: cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.10/site-packages/jinja2/__init__.py)
Running manually:
python3 run.py
Output:
Using Docker:
docker-compose up
Output: