shawly / docker-nut

Docker container for https://github.com/blawar/NUT. "latest" & "v3" tags use stable release v3.3. "edge" tag uses latest master source code.
GNU General Public License v3.0
63 stars 8 forks source link

markupsafe error #8

Closed timandlife closed 1 year ago

timandlife commented 1 year ago

Changing the markupsafe version to 2.0.1 fixes the issue

pip install markupsafe==2.0.1

shawly commented 1 year ago

What issue?

timandlife commented 1 year ago

ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/nut/venv/lib/python3.10/site-packages/markupsafe/init.py)

StrangerJona commented 1 year ago

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

installing markunsafe 2.0.1 worked for me as well.

Screen Shot 2022-11-14 at 1 15 15 AM
shawly commented 1 year ago

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