Coder Social home page Coder Social logo

markupsafe error about docker-nut HOT 5 CLOSED

shawly avatar shawly commented on August 23, 2024
markupsafe error

from docker-nut.

Comments (5)

Memodellocos avatar Memodellocos commented on August 23, 2024 1

installing markunsafe 2.0.1 worked for me as well.

Screen Shot 2022-11-14 at 1 15 15 AM

from docker-nut.

shawly avatar shawly commented on August 23, 2024

What issue?

from docker-nut.

timandlife avatar timandlife commented on August 23, 2024

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

from docker-nut.

StrangerJona avatar StrangerJona commented on August 23, 2024

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)

from docker-nut.

shawly avatar shawly commented on August 23, 2024

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

from docker-nut.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.