You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the guide, the application fails to launch due to "old" dependencies. Here's the exact error
Traceback (most recent call last):
File "/home/<uname>/flask-example/app.py", line 4, in <module>
from flask import Flask, session, url_for, redirect, render_template, request, abort, flash
File "/home/<uname>/.local/lib/python3.9/site-packages/flask/__init__.py", line 14, in <module>
from jinja2 import escape
ImportError: cannot import name 'escape' from 'jinja2' (/home/<uname>/.local/lib/python3.9/site-packages/jinja2/__init__.py)
Shouldn't matter too much, but here's my system information (running Ubuntu 22.04 LTS on Raspi 4b):
I believe this is due to Flask version being too "old". Upgrading to newer version (e.g. =< 2.0) should fix the problem.
The text was updated successfully, but these errors were encountered:
TunaCici
changed the title
Dependency Error - ImportError: cannot import name 'escape' from 'jinja2'
Outdated Dependencies - ImportError: cannot import name 'escape' from 'jinja2'
Jan 18, 2024
Following the guide, the application fails to launch due to "old" dependencies. Here's the exact error
Shouldn't matter too much, but here's my system information (running Ubuntu 22.04 LTS on Raspi 4b):
I believe this is due to Flask version being too "old". Upgrading to newer version (e.g. =< 2.0) should fix the problem.
The text was updated successfully, but these errors were encountered: