Flask fails to import "escape" from Jinja2
psharma04 opened this issue · comments
Pepsi commented
What part of dashboard are you having an issue with?
Dashboard webserver
What happened?
When running the reddash
command, Python returns an error:
File "/usr/local/bin/reddash", line 5, in <module>
from reddash.__main__ import main
File "/usr/local/lib/python3.10/site-packages/reddash/__main__.py", line 7, in <module>
from reddash.app import create_app
File "/usr/local/lib/python3.10/site-packages/reddash/app/__init__.py", line 8, in <module>
from flask import Flask, url_for, session, render_template
File "/usr/local/lib/python3.10/site-packages/flask/__init__.py", line 14, in <module>
from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.10/site-packages/jinja2/__init__.py)
What did you expect to happen?
The command should have returned the interface described in the Docs.
What can we do to reproduce this?
Following the Mac/Linux Installation Guide using Ubuntu 20.04:
$ python3 -m venv ~/reddashenv
$ source ~/reddashenv/bin/activate
$ python -m pip install -U pip setuptools wheel
$ python -m pip install -U Red-Dashboard
$ reddash
returns the error from above.
Full install logs available here: https://hastebin.skyra.pw/xasonomuso.log
What is your bot/webserver running on?
- Operating system: Ubuntu 20.04.4 LTS x86_64
- Python version: Python 3.8.10
- Dashboard webserver version: Red-Dashboard-0.1.7a0
- Dashboard cog version: N/A (webserver doesn't get far enough to connect to the cog)
What are you having issues on?
- Operating system: Ubuntu 20.04.4 LTS x86_64
- Browser: N/A
Bazim commented
Same for me.