Bug 2231376
| Summary: | running ansible-lint fails with python3.11 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Allen Winter <winter> |
| Component: | ansible-lint | Assignee: | Parag Nemade <pnemade> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 37 | CC: | maxwell, pnemade |
| Target Milestone: | --- | Keywords: | Desktop, Upgrades |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-08-11 15:55:59 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** This bug has been marked as a duplicate of bug 2213747 *** |
ansible-lint gives a traceback Reproducible: Always Steps to Reproduce: 1. try running ansible-lint --version Actual Results: $ ansible-lint Traceback (most recent call last): File "/usr/bin/ansible-lint", line 8, in <module> sys.exit(_run_cli_entrypoint()) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/ansiblelint/__main__.py", line 344, in _run_cli_entrypoint sys.exit(main(sys.argv)) ^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/ansiblelint/__main__.py", line 197, in main initialize_options(argv[1:]) File "/usr/lib/python3.11/site-packages/ansiblelint/__main__.py", line 110, in initialize_options options.cache_dir = get_cache_dir(options.project_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/ansible_compat/prerun.py", line 13, in get_cache_dir basename = project_dir.resolve().name.encode(encoding="utf-8") ^^^^^^^^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'resolve' Expected Results: should work maybe upgrading to ansible-lint v.16.0 would help? https://github.com/ansible/ansible-lint/releases/tag/v6.16.0