Closed timandlife closed 1 year ago
What issue?
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/nut/venv/lib/python3.10/site-packages/markupsafe/init.py)
What am i doing wrong here? EDIT: I have installed markupsafe==2.0.1 too, and still getting below.
Traceback (most recent call last):
File "/nut/nut.py", line 18, in <module>
from nut import Title
File "/nut/nut/__init__.py", line 24, in <module>
import Fs
File "/nut/Fs/__init__.py", line 3, in <module>
from Fs.Nsp import Nsp
File "/nut/Fs/Nsp.py", line 22, in <module>
from nut import blockchain
File "/nut/nut/blockchain.py", line 25, in <module>
loading blacklist /nut/conf/blacklist.online.txt
from flask import Flask, jsonify, request
File "/nut/venv/lib/python3.10/site-packages/flask/__init__.py", line 14, in <module>
from jinja2 import escape
File "/nut/venv/lib/python3.10/site-packages/jinja2/__init__.py", line 12, in <module>
from .environment import Environment
File "/nut/venv/lib/python3.10/site-packages/jinja2/environment.py", line 25, in <module>
from .defaults import BLOCK_END_STRING
File "/nut/venv/lib/python3.10/site-packages/jinja2/defaults.py", line 3, in <module>
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "/nut/venv/lib/python3.10/site-packages/jinja2/filters.py", line 13, in <module>
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/nut/venv/lib/python3.10/site-packages/markupsafe/__init__.py)
installing markunsafe 2.0.1 worked for me as well.
Sorry for the late reply, the markupsafe issue was resolved in v3.3.2 but reintroduced with v3.3.3 so I didn't get why people still have this issue.
Since I was using the edge
image I also didn't have this bug since the latest master
branch from NUT doesn't have the markupsafe issue.
Edit: v3.3.4 should fix this issue again
Changing the markupsafe version to 2.0.1 fixes the issue
pip install markupsafe==2.0.1