-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: cannot import name 'render_group' from 'rich.console' #1795
ImportError: cannot import name 'render_group' from 'rich.console' #1795
Comments
Instead of adding the ceiling I would prefer to add support for that version, if not too hard. |
I also encountered this error. Python version:
Ansible-lint version:
The reason of this error can be found at #1795 (comment).
We can fix this error occured https://github.com/ansible-community/ansible-lint/blob/main/src/ansiblelint/generate_docs.py#L6 as below to avoid when use The rich v11.0.0. - from rich.console import render_group
+ from rich.console import group as render_group or PR: #1796. I hope that this response will be done as soon as possible. |
@ssbarnea when would you make a new relase including this bugfix? |
I will made one today. I am working on addressing few more bits before tagging it. |
Just had a pipeline finish successfully, fix appears to be live with ansible_lint-5.3.2 Thank you everyone for the fast response ❤️ |
This affects 4.3.7 too on Python 3.8.12
|
ansible/ansible-lint#1795 Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
- ansible-lint issue ansible/ansible-lint#1795 - vagrant pin macos version per actions/runner-images#4060
Fixes ImportError exceptioin when using rich >= 11.0.0 in ansible-lint: ansible/ansible-lint#1795 Signed-off-by: Martin Perina <mperina@redhat.com>
Fixes ImportError exceptioin when using rich >= 11.0.0 in ansible-lint: ansible/ansible-lint#1795 Signed-off-by: Martin Perina <mperina@redhat.com>
I have the problem only with ansible-lint 4.3.7 with rich 11.0.0. |
Fixes ImportError exceptioin when using rich >= 11.0.0 in ansible-lint: ansible/ansible-lint#1795 Signed-off-by: Martin Perina <mperina@redhat.com>
ansible-lint version bump ansible/ansible-lint#1795
see ansible/ansible-lint#1795 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
see ansible/ansible-lint#1795 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
see ansible/ansible-lint#1795 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
see ansible/ansible-lint#1795 Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Due to recent issue in the ansible-lint package we need to bump version which we are using: ansible/ansible-lint#1795
Due to recent issue in the ansible-lint package we need to bump version which we are using: ansible/ansible-lint#1795 Fix ansible-lint errors revealed by new ansible-lint.
Due to recent issue in the ansible-lint package we need to bump version which we are using: ansible/ansible-lint#1795 Fix ansible-lint errors revealed by new ansible-lint.
Due to recent issue in the ansible-lint package we need to bump version which we are using: ansible/ansible-lint#1795 Fix ansible-lint errors revealed by new ansible-lint.
Due to recent issue in the ansible-lint package we need to bump version which we are using: ansible/ansible-lint#1795 Fix ansible-lint errors revealed by new ansible-lint.
Due to recent issue in the ansible-lint package we need to bump version which we are using: ansible/ansible-lint#1795 Fix ansible-lint errors revealed by new ansible-lint.
Due to recent issue in the ansible-lint package we need to bump version which we are using: ansible/ansible-lint#1795 Fix ansible-lint errors revealed by new ansible-lint. Exclude files which are not playbooks.
@ssbarnea what's the reasoning behind not caping Wouldn't it be safer to set |
To cap or not to cap - that is effectively a gamble. So far we had only one case where rich broke us, even if it has several major versions bumps since we started using it. If 12 will break us I will add the cap, now I just a one off. The downside of a cap is that is adding some kind of time-bomb, as it would prevent user from installing the tool in the future just because of the metadata. Imagine that two years from now, rich is version 20 and other projects require that newer version. You will not be able to install current version of linter with it, even if the code itself may work, just because that cap. This is why my take regarding capping is: avoid them unless the projects involved have a bad track of breaking you. Add capping when you know that newer version will break you (basically that can be done by testing with pre-releases or git master branches of involved projects). Note that Also keep in mind that you could make use of our constraints.txt file if you want capped versions. Take a look at https://github.com/ansible-community/ansible-lint/blob/v5.3.2/constraints.txt |
Due to recent issue in the ansible-lint package we need to bump version which we are using: ansible/ansible-lint#1795 Fix ansible-lint errors revealed by new ansible-lint. Exclude files which are not playbooks.
Due to recent issue in the ansible-lint package we need to bump version which we are using: ansible/ansible-lint#1795
Due to ansible/ansible-lint#1795 we are required to move to a newer ansible-lint version. Version 5.0.0 refactored the rules and we must adapt to the new rules. Updated .ansible-lint. Excluding the playbook 'playbooks/packet_gen/iperf/performance_scenario.yml' due to a linting fail that we can not satisfy. Removing ansible-lint during molecule execution, linting occurs on the global level during tox execution. Fixing 'risky-shell-pipe' linting errors. Fixing 'internal-error' linting errors for molecule and more fixes to molecule in general. Excluding rules: - 'unnamed-task' # We don't mind having tasks that are unnamed - 'no-changed-when' # We don't mind that there will be tasks that will always return ok - 'no-handler' # We don't mind that we're running tasks based on a previous task that returned changed - 'package-latest' # We don't mind installing latest packages Change-Id: I057faab90874618933d935bb77ff28663f22e3f0
Update "ansible-lint" dependency to a version that fixes the "ImportError: cannot import name 'render_group' from 'rich.console'" error (for more information, please see <ansible/ansible-lint#1795>).
I'm still getting this error is there any news? |
Summary
rich>=9.5.1,<11.0.0
on setup.cfg instead ofrich>=9.5.1
.Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
STEPS TO REPRODUCE
Desired Behaviour
Actual Behaviour
The text was updated successfully, but these errors were encountered: