Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import errors with latest werkzeuf and flask versions (msnoise admin) #317

Open
asyates opened this issue Jan 24, 2024 · 0 comments
Open

Comments

@asyates
Copy link
Contributor

asyates commented Jan 24, 2024

Just noting, when running master version of msnoise, I had several import errors trying to run msnoise admin that required me to downgrade various packages.

File "/home/yatesal/.local/lib/python3.8/site-packages/flask_wtf/csrf.py", line 10, in <module>
    from werkzeug.security import safe_str_cmp
ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security' (/home/yatesal/.local/lib/python3.8/site-packages/werkzeug/security.py) 

Downgrading Werkzeug and flask packages to 2.0.3 from 3.0.1 gets past this error, but then on running msnoise admin again gives a new import error:

  File "/home/yatesal/.local/lib/python3.8/site-packages/flask_wtf/form.py", line 4, in <module>
    from jinja2 import Markup
ImportError: cannot import name 'Markup' from 'jinja2' (/home/yatesal/.local/lib/python3.8/site-packages/jinja2/__init__.py)

Fixed by downgrading jinja2 from 3.1.3 to 3.0.3. After this msnoise admin runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant