[Pkg-salt-team] Bug#1033808: ImportError: cannot import name 'Markup' from 'jinja2'

David Mandelberg david at mandelberg.org
Sun Apr 2 02:05:12 BST 2023


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)



More information about the pkg-salt-team mailing list