Sunday 27 September 2020

ansible failing with "cannot import name 'AnsibleCollectionLoader'"

 Grr, I just ran into this again locally, after I was installing Ansible 2.9.10, then 2.10 pre, then ansible-base, then Ansible 2.9.10 again.

The fix was as @jamesmarshall24 and @NicoWde stated:

  1. pip3 uninstall ansible
  2. rm -rf /usr/local/lib/python3.7/site-packages/ansible (things that weren't automatically removed)
  3. pip3 install ansible


from : https://github.com/ansible-collections/community.kubernetes/issues/135

No comments:

Post a Comment