google / android-emulator-container-scripts

1.87k stars 261 forks source link

[Bug] Can't run emu-docker since markupsafe (Jinja2) breaking change #296

Open Vefine596 opened 2 years ago

Vefine596 commented 2 years ago

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) :

Thank you !

hemeda3 commented 2 years ago

I have this same issue always , solved it by executing:

python -m pip install markupsafe==2.0.1