Read the statement by Michael Teeuw here.
No Web UI with MMM-FastNotes
-
@rvnbrg ok, looking at the code, it looks like there is a python script that provides that UI
so, in the module folder do
python3 FastNotes.py --host 192.168.178.30 --port 5000 --debug
-
@sdetweil That gives me this:
xavier@raspberrypi:~/MagicMirror/modules/MMM-FastNotes $ python3 FastNotes.py --host 192.168.178.30 --port 5000 --debug
Traceback (most recent call last):
File “/home/xavier/MagicMirror/modules/MMM-FastNotes/FastNotes.py”, line 2, in
from backend.fast_notes import start
File “/home/xavier/MagicMirror/modules/MMM-FastNotes/backend/fast_notes.py”, line 1, in
import flask
File “/usr/local/lib/python3.11/dist-packages/flask/init.py”, line 14, in
from jinja2 import escape
ImportError: cannot import name ‘escape’ from ‘jinja2’ (/usr/lib/python3/dist-packages/jinja2/init.py) -
@rvnbrg said in No Web UI with MMM-FastNotes:
ImportError: cannot import name ‘escape’ from ‘jinja2’ (/usr/lib/python3/dist-packages/jinja2/init.py)
that explains the error
-
@sdetweil how can I resolve that?
-
@rvnbrg that I don’t know
-
@sdetweil Thank you for your help so far
-
@rvnbrg i would ask the author
-
@sdetweil i did so but no response yet
-
@rvnbrg Jinja is a dependency of Flask and Flask V1.X.X uses the escape module from Jinja, however recently support for the escape module was dropped in newer versions of Jinja
To fix this issue, simply update to the newer version of Flask V2.X.X in your requirements.txt where Flask no longer uses the escape module from Jinja.
I see there is a requirements.txt where the version of Flask is specified. Maybe updating that to 2.1.1, which is the recommended version that no longer has a dependency on
escape
would resolve this.This is all just guessing. Was trying to figure out how this module hangs together. 🫣
-
@mumblebaj YES! Got it working! Thank you very very much
-