ansible-navigator
ansible-navigator copied to clipboard
collections command fails with message: Something went really wrong
ISSUE TYPE
- Bug Report
SUMMARY
I've installed ansible-navigator using pipx on my Mac. When running `ansible-navigator collections', it fails with the message:
humph. Something went really wrong while cataloging collections.
Details have been added to the log file
[HINT] Please log an issue about this one, it shouldn't have happened
After pressing enter, it then says:
humph. no collections were found in the following paths:
[HINT] Try installing some or try a different execution environment
I do have several collections installed in my ~/.ansible folder.
There seems to be a problem reading a python file; see the log below.
ANSIBLE-NAVIGATOR VERSION
ansible-navigator 24.2.0
CONFIGURATION
ansible-navigator:
execution-environment:
enabled: False
LOG FILE
2024-03-21T11:45:29.782689+00:00 ERROR 'ansible_navigator.actions.collections._run_runner' /opt/homebrew/Cellar/[email protected]/3.12.2_1/Frameworks/Python.framework/Versions/3.12/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/reindert/.cache/ansible-navigator/catalog_collections.py': [Errno 2] No such file or directory
2024-03-21T11:45:30.459215+00:00 ERROR 'ansible_navigator.actions.collections._parse' Unable to extract collection json from stdout
STEPS TO REPRODUCE
pipx install ansible-core ansible-navigator ansible-navigator collections
EXPECTED RESULTS
Be able to browse collections
ACTUAL RESULTS
See description above
Fix some formatting; removed some unnecessary extra text