fix: markupsafe ImportError

Bug Description
===========
I'm trying to install a skyline image, and getting following error
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.8/site-packages/markupsafe/__init__.py)

Result
==================
MakeupSafe==2.1.0 is not supported in Jinja2
Using markupsafe==2.0.1 fixes the issue

Issue: https://bugs.launchpad.net/skyline-apiserver/+bug/1966360
Change-Id: I85857c254874f123505a31044f9145de8a1a9ea1
This commit is contained in:
yangshaoxue 2022-03-23 13:53:50 +08:00 committed by conna
parent 461ddb6632
commit 3c8259e723

2
poetry.lock generated
View File

@ -545,7 +545,7 @@ optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
[package.dependencies]
MarkupSafe = ">=0.23"
MarkupSafe = ">=0.23, <=2.0.1"
[package.extras]
i18n = ["Babel (>=0.8)"]