From 3c8259e7236cfbb49661b9a2ba40c0e97606f4b3 Mon Sep 17 00:00:00 2001 From: yangshaoxue Date: Wed, 23 Mar 2022 13:53:50 +0800 Subject: [PATCH] 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 --- poetry.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index fd7549d..318a625 100644 --- a/poetry.lock +++ b/poetry.lock @@ -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)"]