Date: Sat, 04 Jun 2022 10:50:53 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 264448] sysutils/py-ansible-lint fails after upgrading py-jsonschema to 4.6.0 Message-ID: <bug-264448-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264448 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 a= nd behaviour py38-jsonschema-4.5.1 JSON Schema validation for Python root@freebsd13:~ # ansible-lint dummy.yml=20 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 ## .. =3D=3D=3D>>> Update check of installed ports complete =3D=3D=3D>>> 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 a= nd 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=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.2.2', '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 354, in __init__ for rule in load_plugins(rulesdir): File "/usr/local/lib/python3.8/site-packages/ansiblelint/rules/__init__.p= y", 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_remo= ved 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", li= ne 33, in <module> from jsonschema.validators import RefResolver File "/usr/local/lib/python3.8/site-packages/jsonschema/validators.py", l= ine 386, in <module> meta_schema=3D_utils.load_schema("draft3"), File "/usr/local/lib/python3.8/site-packages/jsonschema/_utils.py", line = 61, in load_schema data =3D path.read_text(encoding=3D"utf-8") File "/usr/local/lib/python3.8/pathlib.py", line 1236, in read_text with self.open(mode=3D'r', encoding=3Dencoding, errors=3Derrors) 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=20 -rw-r--r-- 1 root wheel 0 Jun 4 12:31 dummy.yml root@freebsd13:~ # --=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-264448-7788>