Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flask fails to import "escape" from Jinja2 #71

Open
psharma04 opened this issue May 19, 2022 · 1 comment · May be fixed by #82
Open

Flask fails to import "escape" from Jinja2 #71

psharma04 opened this issue May 19, 2022 · 1 comment · May be fixed by #82
Labels
2-type-bug/fix Issue about a bug or PR fixing a bug.

Comments

@psharma04
Copy link

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:

  1. $ python3 -m venv ~/reddashenv
  2. $ source ~/reddashenv/bin/activate
  3. $ python -m pip install -U pip setuptools wheel
  4. $ python -m pip install -U Red-Dashboard
  5. $ 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
@psharma04 psharma04 added the 2-type-bug/fix Issue about a bug or PR fixing a bug. label May 19, 2022
@Bazimek
Copy link

Bazimek commented Nov 18, 2022

Same for me.

@NeuroAssassin NeuroAssassin linked a pull request Mar 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-type-bug/fix Issue about a bug or PR fixing a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants