[Bug 264448] sysutils/py-ansible-lint fails after upgrading py-jsonschema to 4.6.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 04 Jun 2022 10:50:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264448 Bug ID: 264448 Summary: sysutils/py-ansible-lint fails after upgrading py-jsonschema to 4.6.0 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) ## ## py-ansible-lint works with py38-jsonschema-4.5.1 ## root@freebsd13:~ # ansible-lint --version ansible-lint 6.2.2 using ansible 2.12.4 root@freebsd13:~ # pkg info | grep -E ansible-lint\|jsonschema py38-ansible-lint-6.2.2 Checks playbooks for sub-optimal practices and behaviour py38-jsonschema-4.5.1 JSON Schema validation for Python root@freebsd13:~ # ansible-lint dummy.yml WARNING Overriding detected file kind 'yaml' with 'playbook' for given positional argument: dummy.yml WARNING Listing 1 violation(s) that are fatal syntax-check: Empty playbook, nothing to do (empty-playbook) dummy.yml:1 ERROR! Empty playbook, nothing to do Finished with 1 failure(s), 0 warning(s) on 1 files. root@freebsd13:~ # ## ## py-ansible-lint does not work with py38-jsonschema-4.6.0 ## .. ===>>> Update check of installed ports complete ===>>> The following actions were performed: Upgrade of py38-jsonschema-4.5.1 to py38-jsonschema-4.6.0 root@freebsd13:~ # pkg info | grep -E ansible-lint\|jsonschema py38-ansible-lint-6.2.2 Checks playbooks for sub-optimal practices and behaviour py38-jsonschema-4.6.0 JSON Schema validation for Python root@freebsd13:~ # ansible-lint --version ansible-lint 6.2.2 using ansible 2.12.4 root@freebsd13:~ # ansible-lint dummy.yml Traceback (most recent call last): File "/usr/local/bin/ansible-lint", line 33, in <module> sys.exit(load_entry_point('ansible-lint==6.2.2', '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 354, in __init__ for rule in load_plugins(rulesdir): File "/usr/local/lib/python3.8/site-packages/ansiblelint/rules/__init__.py", line 319, 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 File "/usr/local/lib/python3.8/site-packages/jsonschema/__init__.py", line 29, in <module> from jsonschema.protocols import Validator File "/usr/local/lib/python3.8/site-packages/jsonschema/protocols.py", line 33, in <module> from jsonschema.validators import RefResolver File "/usr/local/lib/python3.8/site-packages/jsonschema/validators.py", line 386, in <module> meta_schema=_utils.load_schema("draft3"), File "/usr/local/lib/python3.8/site-packages/jsonschema/_utils.py", line 61, in load_schema data = path.read_text(encoding="utf-8") File "/usr/local/lib/python3.8/pathlib.py", line 1236, in read_text with self.open(mode='r', encoding=encoding, errors=errors) as f: File "/usr/local/lib/python3.8/pathlib.py", line 1222, in open return io.open(self, mode, buffering, encoding, errors, newline, File "/usr/local/lib/python3.8/pathlib.py", line 1078, in _opener return self._accessor.open(self, flags, mode) FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/site-packages/jsonschema/schemas/draft3.json' root@freebsd13:~ # ls -l dummy.yml -rw-r--r-- 1 root wheel 0 Jun 4 12:31 dummy.yml root@freebsd13:~ # -- You are receiving this mail because: You are the assignee for the bug.