Bug 50139

Summary: Не работает пакет ansible-lint
Product: Branch p10 Reporter: obidinog <obidinog>
Component: ansible-lintAssignee: Anton Vyatkin <toni>
Status: CLOSED FIXED QA Contact: qa-p10 <qa-p10>
Severity: normal    
Priority: P5 CC: d.rossikhin, gfh1gfh1, max.gordeef, rezvjakovne, shaba, shevchenkodyu
Version: не указана   
Hardware: x86_64   
OS: Linux   

Description obidinog@basealt.ru 2024-04-24 10:32:02 MSK
Платформа:
alt-kworkstation 10.2.1 x86_64

Пакет:
ansible-lint 4.3.7-alt1

Шаги:
Выполнить команду
$ ansible-lint main.yml

Результат:
Traceback (most recent call last):
  File "/usr/bin/ansible-lint", line 5, in <module>
    from ansiblelint.__main__ import main
  File "/usr/lib/python3/site-packages/ansiblelint/__main__.py", line 37, in <module>
    from ansiblelint.generate_docs import rules_as_rich, rules_as_rst
  File "/usr/lib/python3/site-packages/ansiblelint/generate_docs.py", line 6, in <module>
    from rich.console import render_group
ImportError: cannot import name 'render_group' from 'rich.console' (/usr/lib/python3/site-packages/rich/console.py)

Дополнительно:
В Sisyphus не воспроизводится
Исправили в версии 5.3.2 https://github.com/ansible/ansible-lint/releases/tag/v5.3.2
Comment 1 d.rossikhin 2024-10-30 00:09:52 MSK
NAME="Simply Linux"
VERSION="10.4 (Captain Finn)"

Ошибка повторяется.
Comment 2 gfh1gfh1 2024-11-06 13:55:36 MSK
Можно поправить в текущей версии соответственно https://github.com/ansible/ansible-lint/issues/1795#issuecomment-1008379989

Поменять в /usr/lib/python3/site-packages/ansiblelint/generate_docs.py
строку
from rich.console import render_group
на
from rich.console import group as render_group
Comment 3 Резвяков Никита 2024-11-19 14:09:32 MSK
Стенды:
Alt Kworkstation 10.4 x86-64
Alt Workstation 10.2 x86-64
Alt Education 10.2 x86-64-xfce
Alt Education 10.2 x86-64-kde
Alt Server 10.2 x86-64
Версия пакета:  
ansible-lint-5.3.2-alt1
Ошибка не воспроизводится.