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

_AnsiblePathHookFinder "This is probably a bug" #273

Open
xelerated opened this issue Sep 18, 2024 · 1 comment
Open

_AnsiblePathHookFinder "This is probably a bug" #273

xelerated opened this issue Sep 18, 2024 · 1 comment

Comments

@xelerated
Copy link

Getting this error when running ansible-galaxy install -r ansible/requirements.yml
directly from first run of GOAD attempt

ERROR! Unexpected Exception, this is probably a bug: '_AnsiblePathHookFinder' object has no attribute 'find_spec'
the full traceback was:

Traceback (most recent call last):
File "/usr/local/bin/ansible-galaxy", line 97, in
mycli = getattr(import("ansible.cli.%s" % sub, fromlist=[myclass]), myclass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/griff/.local/lib/python3.12/site-packages/ansible/cli/init.py", line 21, in
from ansible.inventory.manager import InventoryManager
File "/home/griff/.local/lib/python3.12/site-packages/ansible/inventory/manager.py", line 39, in
from ansible.utils.helpers import deduplicate_list
File "", line 1360, in _find_and_load
File "", line 1322, in _find_and_load_unlocked
File "", line 1262, in _find_spec
File "", line 1528, in find_spec
File "", line 1502, in _get_spec
AttributeError: '_AnsiblePathHookFinder' object has no attribute 'find_spec'

@Mayfly277
Copy link
Collaborator

use a version of python between 3.8 and 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants