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

[BUG] Your title here. #2906

Open
timocarnill opened this issue Jun 25, 2022 · 6 comments
Open

[BUG] Your title here. #2906

timocarnill opened this issue Jun 25, 2022 · 6 comments

Comments

@timocarnill
Copy link

Describe the bug
Python import error when running:
ImportError: cannot import name 'escape' from 'jinja2' (C:\Users\timoc\AppData\Local\Programs\Python\Python310\lib\site-packages\jinja2_init_.py)

OS: Windows 11

@michaelmior
Copy link

I'm seeing this on macOS too, although it would help to add a proper title to the issue.

@Azfrd08
Copy link

Azfrd08 commented Apr 17, 2023

Im getting the same error :

Traceback (most recent call last):
File "/home/azfrd/.local/bin/swaglyrics", line 5, in
from swaglyrics.main import main
File "/home/azfrd/.local/lib/python3.10/site-packages/swaglyrics/main.py", line 11, in
from swaglyrics.tab import app
File "/home/azfrd/.local/lib/python3.10/site-packages/swaglyrics/tab.py", line 4, in
from flask import Flask, render_template
File "/home/azfrd/.local/lib/python3.10/site-packages/flask/init.py", line 14, in
from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (/home/azfrd/.local/lib/python3.10/site-packages/jinja2/init.py)

@korosig
Copy link

korosig commented May 18, 2023

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 197, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\Scripts\swaglyrics.exe_main
.py", line 4, in
File "C:\ProgramData\Anaconda3\lib\site-packages\swaglyrics_main
.py", line 11, in
from swaglyrics.tab import app
File "C:\ProgramData\Anaconda3\lib\site-packages\swaglyrics\tab.py", line 4, in
from flask import Flask, render_template
File "C:\ProgramData\Anaconda3\lib\site-packages\flask_init.py", line 14, in
from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (C:\Users\user\AppData\Roaming\Python\Python39\site-packages\jinja2_init_.py)

@aadibajpai
Copy link
Member

sorry for the delay all, been a bit busy with school and work. Will get to this soon

@bmrussell
Copy link

Found a workaround:

pip uninstall flask
pip install flask

@T0RNATO
Copy link

T0RNATO commented May 8, 2024

Workaround doesn't work for me, getting a ton of runtime errors:

RuntimeError: Not running with the Werkzeug Server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants