SwagLyrics / SwagLyrics-For-Spotify

📃 Get lyrics of currently playing Spotify song so you don't sing along with the wrong ones and embarrass yourself later. Very fast.
https://pypi.org/project/swaglyrics/
MIT License
316 stars 35 forks source link

[BUG] Your title here. #2906

Open timocarnill opened 2 years ago

timocarnill commented 2 years ago

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 commented 1 year ago

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

Azfrd08 commented 1 year ago

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, rendertemplate 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 commented 1 year ago

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 commented 1 year ago

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

bmrussell commented 4 months ago

Found a workaround:

pip uninstall flask
pip install flask
T0RNATO commented 2 months ago

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

RuntimeError: Not running with the Werkzeug Server