Package: ansible-mitogen
Version: 0.3.22-3
Severity: grave

Since upgrading ansible, ansible-mitogen fails with:

[ERROR]: Unexpected Exception, this is probably a bug: No module named 
'ansible.parsing.utils.jsonify'

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ansible/cli/__init__.py", line 735, in 
cli_executor
    exit_code = cli.run()
  File "/usr/lib/python3/dist-packages/ansible/cli/playbook.py", line 153, in 
run
    results = pbex.run()
  File "/usr/lib/python3/dist-packages/ansible/executor/playbook_executor.py", 
line 188, in run
    result = self._tqm.run(play=play)
  File "/usr/lib/python3/dist-packages/ansible/executor/task_queue_manager.py", 
line 346, in run
    strategy = strategy_loader.get(new_play.strategy, self)
  File "/usr/lib/python3/dist-packages/ansible/plugins/loader.py", line 906, in 
get
    ctx = self.get_with_context(name, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/ansible/plugins/loader.py", line 950, in 
get_with_context
    self._module_cache[path] = self._load_module_source(resolved_type_name, 
path)
                               
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/ansible/plugins/loader.py", line 871, in 
_load_module_source
    spec.loader.exec_module(module)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File 
"/usr/lib/python3/dist-packages/ansible/plugins/strategy/mitogen_linear.py", 
line 58, in <module>
    import ansible_mitogen.strategy
  File "/usr/lib/python3/dist-packages/ansible_mitogen/strategy.py", line 44, 
in <module>
    import ansible_mitogen.mixins
  File "/usr/lib/python3/dist-packages/ansible_mitogen/mixins.py", line 45, in 
<module>
    from ansible.parsing.utils.jsonify import jsonify
ModuleNotFoundError: No module named 'ansible.parsing.utils.jsonify'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ansible/cli/__init__.py", line 744, in 
cli_executor
    raise AnsibleError("Unexpected Exception, this is probably a bug.") from ex
ansible.errors.AnsibleError: Unexpected Exception, this is probably a bug: No 
module named 'ansible.parsing.utils.jsonify'


ansible.cfg contains:

[defaults]
inventory = hosts.txt

# https://mitogen.readthedocs.io/en/stable/ansible.html#installation
strategy = mitogen_linear

system_warnings = True

[ssh_connection]
pipelining = True



-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.22-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ansible-mitogen depends on:
ii  ansible-core     2.19.0~beta1-2
ii  python3          3.13.3-1
ii  python3-mitogen  0.3.22-3

ansible-mitogen recommends no packages.

ansible-mitogen suggests no packages.

-- no debconf information

-- 
ciao,
Marco

Attachment: signature.asc
Description: PGP signature

Reply via email to