FS#74701 - [ansible-lint] Missing jsonschema dependency

Attached to Project: Community Packages
Opened by Amin Vakil (aminvakil) - Wednesday, 11 May 2022, 05:51 GMT
Last edited by freswa (frederik) - Wednesday, 11 May 2022, 12:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jelle van der Waa (jelly)
freswa (frederik)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Currently it fails with:

```
Traceback (most recent call last):
File "/usr/bin/ansible-lint", line 8, in <module>
sys.exit(_run_cli_entrypoint())
File "/usr/lib/python3.10/site-packages/ansiblelint/__main__.py", line 252, in _run_cli_entrypoint
sys.exit(main(sys.argv))
File "/usr/lib/python3.10/site-packages/ansiblelint/__main__.py", line 170, in main
rules = RulesCollection(options.rulesdirs)
File "/usr/lib/python3.10/site-packages/ansiblelint/rules/__init__.py", line 341, in __init__
for rule in load_plugins(rulesdir):
File "/usr/lib/python3.10/site-packages/ansiblelint/rules/__init__.py", line 308, in load_plugins
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/ansiblelint/rules/schema.py", line 10, in <module>
from jsonschema import validate
ModuleNotFoundError: No module named 'jsonschema'
```
I guess this is because of https://github.com/ansible/ansible-lint/commit/49377b8 which has added jsonschema to requirements.txt and setup.cfg

pyrsistent has been added to requirements.txt as well.

Additional info:
ansible-lint 6.1.0-1

Steps to reproduce:
Upgrade to 6.1.0-1, try running ansible-lint on any role / collection ...

Please note ansible-lint --version returns 0 and does not have any problem.
This task depends upon

Closed by  freswa (frederik)
Wednesday, 11 May 2022, 12:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  ansible-lint-6.1.0-2
Comment by Amin Vakil (aminvakil) - Wednesday, 11 May 2022, 06:04 GMT
Well python-pyrsistent is a dep of python-jsonschema, so let's not worry about that for now :)

Loading...