[david@localhost ansible]$ rpm -q python3-ansible-lin [david@localhost ansible]$ ansible-lint file_which_does_not_exist 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' Reproducible:
This happened due to new update of ansible-compat in F37 The last known ansible-lint build is ansible-lint-6.10.0-1.fc37 which is working fine with python-ansible-compat-2.2.7-9.fc37 but then python-ansible-compat directly got an update to 4.0.4-1.fc37 which broke ansible-lint command.
*** This bug has been marked as a duplicate of bug 2213747 ***