Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836268 - dev-python/jinja-2.11.3 does not support dev-python/markupsafe-2.1.1
Summary: dev-python/jinja-2.11.3 does not support dev-python/markupsafe-2.1.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 834777 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-03-27 12:06 UTC by Cédric Krier
Modified: 2022-03-28 01:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cédric Krier gentoo-dev 2022-03-27 12:06:41 UTC
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)
Comment 1 Cédric Krier gentoo-dev 2022-03-27 12:11:18 UTC
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.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-03-27 16:31:32 UTC
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.
Comment 3 Larry the Git Cow gentoo-dev 2022-03-27 16:32:00 UTC
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(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-28 01:12:55 UTC
*** Bug 834777 has been marked as a duplicate of this bug. ***