jinja tries to import 'soft_unicode' from 'markupsafe' which has been removed: File "/usr/lib/python3.9/site-packages/jinja2/__init__.py", line 12, in <module> from .environment import Environment File "/usr/lib/python3.9/site-packages/jinja2/environment.py", line 25, in <module> from .defaults import BLOCK_END_STRING File "/usr/lib/python3.9/site-packages/jinja2/defaults.py", line 3, in <module> from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401 File "/usr/lib/python3.9/site-packages/jinja2/filters.py", line 13, in <module> from markupsafe import soft_unicode ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/lib/python3.9/site-packages/markupsafe/__init__.py)
soft_unicode has been removed in version 2.1.0: https://github.com/pallets/markupsafe/blob/main/CHANGES.rst#version-210 Unfortunately the version 2.0.1 has been removed from the tree recently: https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-python/markupsafe?id=96bd197fb42b1a8164e659fee96eca4dad62e207 So we have to use the version 1.1.1.
This one is easily fixable but you should really stop using old jinja. Upstream is pretty clear on claiming that this version is no longer supported.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbe333673018c0c0dbdfa43e4529e9d406c133ea commit dbe333673018c0c0dbdfa43e4529e9d406c133ea Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2022-03-27 16:30:06 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2022-03-27 16:31:57 +0000 dev-python/jinja: Fix markupsafe-2.1.0+ compat Closes: https://bugs.gentoo.org/836268 Signed-off-by: Michał Górny <mgorny@gentoo.org> .../jinja/{jinja-2.11.3.ebuild => jinja-2.11.3-r1.ebuild} | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
*** Bug 834777 has been marked as a duplicate of this bug. ***