Bug 1901684 - cannot use ansible-review because of ImportError from ansiblelint
Summary: cannot use ansible-review because of ImportError from ansiblelint
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: ansible-review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1923667 (view as bug list)
Depends On:
Blocks: F34FTBFS PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2020-11-25 19:57 UTC by Heldwin
Modified: 2021-02-24 13:39 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

Description Heldwin 2020-11-25 19:57:37 UTC
Description of problem:
I cannot use ansible-review, it crashes with an ImportError.

Version-Release number of selected component (if applicable):
python3-ansible-review-0.13.9-6.fc33.noarch
python3-ansible-lint-4.3.5-1.fc33.noarch


Traceback (most recent call last):
  File "/usr/bin/ansible-review", line 33, in <module>
    sys.exit(load_entry_point('ansible-review==0.13.9', 'console_scripts', 'ansible-review')())
  File "/usr/bin/ansible-review", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib64/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  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 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/ansiblereview/__init__.py", line 1, in <module>
    from ansiblelint import default_rulesdir, RulesCollection
ImportError: cannot import name 'default_rulesdir' from 'ansiblelint' (/usr/lib/python3.9/site-packages/ansiblelint/__init__.py)

Comment 1 Nils Philippsen 2021-02-24 13:39:25 UTC
*** Bug 1923667 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.