ansible / ansible-navigator

A text-based user interface (TUI) for Ansible.
https://ansible.readthedocs.io/projects/navigator/
Apache License 2.0
391 stars 101 forks source link

collections command fails with message: Something went really wrong #1720

Open rjekker opened 7 months ago

rjekker commented 7 months ago
ISSUE TYPE
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/python@3.12/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

rjekker commented 7 months ago

Fix some formatting; removed some unnecessary extra text