Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847604 - app-admin/ansible-core-2.13.0: AttributeError: module 'typing_extensions' has no attribute 'OrderedDictTypedDict'
Summary: app-admin/ansible-core-2.13.0: AttributeError: module 'typing_extensions' has...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL: https://github.com/ansible/ansible/is...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-26 19:13 UTC by pva
Modified: 2024-01-13 14:49 UTC (History)
1 user (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 pva 2022-05-26 19:13:39 UTC
Running ansible fails with the following error:
TASK [Gathering Facts] ***************************************************************************************************************************
fatal: [b612-app4-test]: FAILED! => changed=false 
  ansible_facts: {}
  failed_modules:
    ansible.legacy.setup:
      exception: |-
        Traceback (most recent call last):
          File "<stdin>", line 107, in <module>
          File "<stdin>", line 99, in _ansiballz_main
          File "<stdin>", line 47, in invoke_module
          File "/usr/lib/python3.9/runpy.py", line 210, in run_module
            return _run_module_code(code, init_globals, run_name, mod_spec)
          File "/usr/lib/python3.9/runpy.py", line 97, in _run_module_code
            _run_code(code, mod_globals, init_globals,
          File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
            exec(code, run_globals)
          File "/tmp/ansible_ansible.legacy.setup_payload_y8joh8wf/ansible_ansible.legacy.setup_payload.zip/ansible/modules/setup.py", line 168, in <module>
          File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
          File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
          File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
          File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
          File "<frozen zipimport>", line 259, in load_module
          File "/tmp/ansible_ansible.legacy.setup_payload_y8joh8wf/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/facts/__init__.py", line 34, in <module>
          File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
          File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
          File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
          File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
          File "<frozen zipimport>", line 259, in load_module
          File "/tmp/ansible_ansible.legacy.setup_payload_y8joh8wf/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/facts/compat.py", line 33, in <module>
          File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
          File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
          File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
          File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
          File "<frozen zipimport>", line 259, in load_module
          File "/tmp/ansible_ansible.legacy.setup_payload_y8joh8wf/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/facts/default_collectors.py", line 31, in <module>
          File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
          File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
          File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
          File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
          File "<frozen zipimport>", line 259, in load_module
          File "/tmp/ansible_ansible.legacy.setup_payload_y8joh8wf/ansible_ansible.legacy.setup_payload.zip/ansible/module_utils/compat/typing.py", line 8, in <module>
            * Two classes whose instances can be type arguments in addition to types: ForwardRef and TypeVar
        AttributeError: module 'typing_extensions' has no attribute 'OrderedDictTypedDict'


Googling around I found that this problem was already fixed upstream https://github.com/ansible/ansible/issues/77857 with the following patch: https://github.com/ansible/ansible/pull/77860/files

Patch helps here. Please, apply.