Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Apr 2022 11:28:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 263033] sysutils/py-ansible-lint @py38 6.0.2 fails to run - No module named 'ansible_compat'
Message-ID:  <bug-263033-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263033

            Bug ID: 263033
           Summary: sysutils/py-ansible-lint @py38 6.0.2 fails to run - No
                    module named 'ansible_compat'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: matthew@FreeBSD.org
          Reporter: vikashb@where-ever.za.net
          Assignee: matthew@FreeBSD.org
             Flags: maintainer-feedback?(matthew@FreeBSD.org)

after upgrade to 6.0.2
ansible-lint --version
Traceback (most recent call last):
  File "/usr/local/bin/ansible-lint", line 33, in <module>
    sys.exit(load_entry_point('ansible-lint=3D=3D6.0.2', 'console_scripts',
'ansible-lint')())
  File "/usr/local/bin/ansible-lint", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/local/lib/python3.8/importlib/metadata.py", line 77, in load
    module =3D import_module(match.group('module'))
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in
import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_remo=
ved
  File "/usr/local/lib/python3.8/site-packages/ansiblelint/__main__.py", li=
ne
33, in <module>
    from ansible_compat.config import ansible_version
ModuleNotFoundError: No module named 'ansible_compat'

% pkg info | grep ansible
py38-ansible-5.5.0             Radically simple IT automation
py38-ansible-core-2.12.4       Radically simple IT automation
py38-ansible-lint-6.0.2        Checks playbooks for sub-optimal practices a=
nd
behaviour


downgrading to 5.2.0 works:
% pkg info | grep ansible
py38-ansible-5.5.0             Radically simple IT automation
py38-ansible-core-2.12.4       Radically simple IT automation
py38-ansible-lint-5.2.0        Checks playbooks for sub-optimal practices a=
nd
behaviour
% ansible-lint --version
ansible-lint 5.2.0 using ansible 2.12.4

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263033-7788>