Start a Conversation

Unsolved

7 Posts

1412

December 20th, 2022 05:00

could not install the collection

fresh installed ubuntu 22.04 with python 3.10 and ansible 2.12 could not instll the collection....

un@frosch:~/ansible$ python
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
un@frosch:~/ansible$ ansible --version
ansible [core 2.12.0]
config file = None
configured module search path = ['/home/un/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /home/un/ansible:/home/un/ansible
executable location = /usr/bin/ansible
python version = 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]
jinja version = 3.0.3
libyaml = True

 

 

-->

~/ansible$ ansible-galaxy collection install dellemc.powerscale:1.8.0 -p /home/un/ansible -vvv
ansible-galaxy [core 2.12.0]
config file = None
configured module search path = ['/home/un/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /home/un/ansible:/home/un/ansible
executable location = /usr/bin/ansible-galaxy
python version = 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]
jinja version = 3.0.3
libyaml = True
No config file found; using defaults
Starting galaxy collection install process
Process install dependency map
ERROR! Unexpected Exception, this is probably a bug: CollectionDependencyProvider.find_matches() got an unexpected keyword argument 'identifier'
the full traceback was:

Traceback (most recent call last):
File "/usr/bin/ansible-galaxy", line 128, in
exit_code = cli.run()
File "/usr/lib/python3/dist-packages/ansible/cli/galaxy.py", line 567, in run
return context.CLIARGS['func']()
File "/usr/lib/python3/dist-packages/ansible/cli/galaxy.py", line 86, in method_wrapper
return wrapped_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/ansible/cli/galaxy.py", line 1201, in execute_install
self._execute_install_collection(
File "/usr/lib/python3/dist-packages/ansible/cli/galaxy.py", line 1228, in _execute_install_collection
install_collections(
File "/usr/lib/python3/dist-packages/ansible/galaxy/collection/__init__.py", line 513, in install_collections
dependency_map = _resolve_depenency_map(
File "/usr/lib/python3/dist-packages/ansible/galaxy/collection/__init__.py", line 1327, in _resolve_depenency_map
return collection_dep_resolver.resolve(
File "/usr/lib/python3/dist-packages/resolvelib/resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/usr/lib/python3/dist-packages/resolvelib/resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "/usr/lib/python3/dist-packages/resolvelib/resolvers.py", line 147, in _add_to_criteria
matches = self._p.find_matches(
TypeError: CollectionDependencyProvider.find_matches() got an unexpected keyword argument 'identifier'

 

1 Rookie

 • 

79 Posts

December 20th, 2022 10:00

Hi @UdoHase 

This seems to be a ansible-galaxy/ resolvlib issue. This is a similar thread for the issue mentioned https://github.com/ansible-collections/community.digitalocean/issues/132.

Could you please ensure the resolvlib version installed is as per the requirements mentioned in the issue thread or upgrade ansible using python3 -m pip install --upgrade ansible?

Thanks,

Jennifer 

No Events found!

Top