Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rjekker opened this issue Mar 21, 2024 · 1 comment
Open

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

rjekker opened this issue Mar 21, 2024 · 1 comment
Assignees
Labels
bug Researched, reproducible, committed to fix

Comments

@rjekker
Copy link

rjekker commented Mar 21, 2024

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

@rjekker rjekker added bug Researched, reproducible, committed to fix new New issues and PRs to triaged labels Mar 21, 2024
@rjekker
Copy link
Author

rjekker commented Mar 21, 2024

Fix some formatting; removed some unnecessary extra text

@audgirka audgirka removed the new New issues and PRs to triaged label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Researched, reproducible, committed to fix
Projects
Status: Roadmap
Development

No branches or pull requests

3 participants