Bug 50139 - Не работает пакет ansible-lint
Summary: Не работает пакет ansible-lint
Status: CLOSED FIXED
Alias: None
Product: Branch p10
Classification: Unclassified
Component: ansible-lint (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 normal
Assignee: Anton Vyatkin
QA Contact: qa-p10@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-24 10:32 MSK by obidinog@basealt.ru
Modified: 2024-11-19 14:09 MSK (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
Ошибка не воспроизводится.