Orange-Cyberdefense / GOAD

game of active directory
GNU General Public License v3.0
5.44k stars 753 forks source link

_AnsiblePathHookFinder "This is probably a bug" #273

Open xelerated opened 2 months ago

xelerated commented 2 months ago

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 commented 1 month ago

use a version of python between 3.8 and 3.10