[Bug 263932] sysutils/py-ansible-lint: @py38 6.1.0 fails to run - No module named 'jsonschema'

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 12 May 2022 08:00:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263932

            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 
Traceback (most recent call last):
  File "/usr/local/bin/ansible-lint", line 33, in <module>
    sys.exit(load_entry_point('ansible-lint==6.1.0', 'console_scripts',
'ansible-lint')())
  File "/usr/local/lib/python3.8/site-packages/ansiblelint/__main__.py", line
252, in _run_cli_entrypoint
    sys.exit(main(sys.argv))
  File "/usr/local/lib/python3.8/site-packages/ansiblelint/__main__.py", line
170, in main
    rules = RulesCollection(options.rulesdirs)
  File "/usr/local/lib/python3.8/site-packages/ansiblelint/rules/__init__.py",
line 341, in __init__
    for rule in load_plugins(rulesdir):
  File "/usr/local/lib/python3.8/site-packages/ansiblelint/rules/__init__.py",
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_removed
  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:~ # 

##
## fixed after installing dependency
##

...
====> Compressing man pages (compress-man)
===>  Installing for py38-jsonschema-4.5.1
===>  Checking if py38-jsonschema is already installed
===>   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 #

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