## ## 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 #
Apologies. I missed the dependency change in the latest update. I shall fix this tonight.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=08c2e911e9beeb640b9cf8acbc0bb2f1781add84 commit 08c2e911e9beeb640b9cf8acbc0bb2f1781add84 Author: Matthew Seaman <matthew@FreeBSD.org> AuthorDate: 2022-05-12 20:01:17 +0000 Commit: Matthew Seaman <matthew@FreeBSD.org> CommitDate: 2022-05-12 20:03:50 +0000 sysutils/py-ansible-lint: add missing dependency on py-jsonschema PR: 263932 Reported by: Andre Rikkert de Koe sysutils/py-ansible-lint/Makefile | 2 ++ 1 file changed, 2 insertions(+)
Fix committed, thanks!