Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2022 08:00:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 263932] sysutils/py-ansible-lint: @py38 6.1.0 fails to run - No module named 'jsonschema'
Message-ID:  <bug-263932-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 263932
           Summary: sysutils/py-ansible-lint: @py38 6.1.0 fails to run -
                    No module named 'jsonschema'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: matthew@FreeBSD.org
          Reporter: freebsd-ports@andre.rikkertdekoe.nl
          Assignee: matthew@FreeBSD.org
             Flags: maintainer-feedback?(matthew@FreeBSD.org)

##
## ansible-lint 6.1.0 needs py-jsonschema as run dependency
##

root@freebsd13:~ # date
Thu May 12 09:57:12 CEST 2022
root@freebsd13:~ # ansible-lint --version
ansible-lint 6.1.0 using ansible 2.12.4
root@freebsd13:~ # ansible-lint=20
Traceback (most recent call last):
  File "/usr/local/bin/ansible-lint", line 33, in <module>
    sys.exit(load_entry_point('ansible-lint=3D=3D6.1.0', 'console_scripts',
'ansible-lint')())
  File "/usr/local/lib/python3.8/site-packages/ansiblelint/__main__.py", li=
ne
252, in _run_cli_entrypoint
    sys.exit(main(sys.argv))
  File "/usr/local/lib/python3.8/site-packages/ansiblelint/__main__.py", li=
ne
170, in main
    rules =3D RulesCollection(options.rulesdirs)
  File "/usr/local/lib/python3.8/site-packages/ansiblelint/rules/__init__.p=
y",
line 341, in __init__
    for rule in load_plugins(rulesdir):
  File "/usr/local/lib/python3.8/site-packages/ansiblelint/rules/__init__.p=
y",
line 308, in load_plugins
    spec.loader.exec_module(module)
  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/rules/schema.py",
line 10, in <module>
    from jsonschema import validate
ModuleNotFoundError: No module named 'jsonschema'
root@freebsd13:~ #=20

##
## fixed after installing dependency
##

...
=3D=3D=3D=3D> Compressing man pages (compress-man)
=3D=3D=3D>  Installing for py38-jsonschema-4.5.1
=3D=3D=3D>  Checking if py38-jsonschema is already installed
=3D=3D=3D>   Registering installation for py38-jsonschema-4.5.1
Installing py38-jsonschema-4.5.1...
root@freebsd13:/usr/ports/devel/py-jsonschema # ansible-lint --version
ansible-lint 6.1.0 using ansible 2.12.4
root@freebsd13:/usr/ports/devel/py-jsonschema # ansible-lint
root@freebsd13:/usr/ports/devel/py-jsonschema #

--=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-263932-7788>