[Bug] Can't run emu-docker since markupsafe (Jinja2) breaking change
Vefine596 opened this issue · comments
Hi,
3 days ago, markupsafe publish a new release (https://markupsafe.palletsprojects.com/en/2.1.x/changes/#version-2-1-0) that adds a breaking change: Remove soft_unicode, which was previously deprecated. Use soft_str instead.
Jinja2==2.11.1 (set in setup.py) depends on MarkupSafe>=0.23 , so it will install new breaking version of markupsafe on a fresh install of emu-docker, and when we run emu-docker :
ImportError: cannot import name 'soft_unicode' from 'markupsafe'
Solutions (both are working) :
- Update to Jinja2==3.0.3 (as 2.* is not supported anymore as specified here pallets/jinja#1585)
- Add "MarkupSafe==2.0.1" (previous version) in setup.py (not recommended as jinja 2.* is unsupported) ...
Thank you !
I have this same issue always , solved it by executing:
python -m pip install markupsafe==2.0.1