Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1033808: ImportError: cannot import name 'Markup' from 'jinja2'

132 views
Skip to first unread message

David Mandelberg

unread,
Apr 1, 2023, 9:10:05 PM4/1/23
to
Package: salt-common
Version: 3004.1+dfsg-2
Severity: important

salt-ssh and salt-call are both giving me the error below, though with
different parts at the top of the stack trace. Upstream bug is:
https://github.com/saltstack/salt/issues/61848

Traceback (most recent call last):
File "/usr/bin/salt-ssh", line 33, in <module>
sys.exit(load_entry_point('salt==3004.1', 'console_scripts',
'salt-ssh')())

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/salt/scripts.py", line 452, in
salt_ssh
import salt.cli.ssh
File "/usr/lib/python3/dist-packages/salt/cli/ssh.py", line 3, in
<module>
import salt.client.ssh
File "/usr/lib/python3/dist-packages/salt/client/ssh/__init__.py",
line 30, in <module>
import salt.minion
File "/usr/lib/python3/dist-packages/salt/minion.py", line 35, in
<module>
import salt.pillar
File "/usr/lib/python3/dist-packages/salt/pillar/__init__.py", line
15, in <module>
import salt.fileclient
File "/usr/lib/python3/dist-packages/salt/fileclient.py", line 30, in
<module>
import salt.utils.templates
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line
20, in <module>
import salt.utils.jinja
File "/usr/lib/python3/dist-packages/salt/utils/jinja.py", line 28,
in <module>
from jinja2 import BaseLoader, Markup, TemplateNotFound, nodes
ImportError: cannot import name 'Markup' from 'jinja2'
(/usr/lib/python3/dist-packages/jinja2/__init__.py)

Simon McVittie

unread,
Apr 26, 2023, 11:30:05 AM4/26/23
to
Control: severity -1 grave
Control: tags -1 + patch

On Sat, 01 Apr 2023 at 21:05:12 -0400, David Mandelberg wrote:
> salt-ssh and salt-call are both giving me the error below, though with
> different parts at the top of the stack trace. Upstream bug is:
> https://github.com/saltstack/salt/issues/61848

After resolving the immediate issue with Markup, there's a similar issue
with contextfunction. Both are fixed in upstream PR
<https://github.com/saltstack/salt/pull/61856>.

I'm raising this to grave because it makes salt(-ssh) unusable on bookworm,
although that doesn't have any practical effect on migration to testing
because there are multiple RC bugs already.

smcv
0 new messages