abhi-r3v0 / Adhrit

Android Security Suite for in-depth reconnaissance and static bytecode analysis based on Ghera benchmarks.
https://www.hawkspawn.com/Adhrit
GNU General Public License v3.0
537 stars 129 forks source link

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

Open hax0rgb opened 2 years ago

hax0rgb commented 2 years ago

Running manually:

python3 run.py

Output:

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)