Hello,
I’m completely new to ansible and I’m not even actually using it for direct development. A software I’m trying to install depends on ansible and it always reports the following error when started:
root@cc9ce7befef1:~# elasticluster
Traceback (most recent call last):
File “/usr/local/bin/elasticluster”, line 9, in
load_entry_point(‘elasticluster==1.2’, ‘console_scripts’, ‘elasticluster’)()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 547, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2720, in load_entry_point
return ep.load()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2380, in load
return self.resolve()
File “/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py”, line 2386, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/usr/local/lib/python2.7/dist-packages/elasticluster/init.py”, line 31, in
from elasticluster.providers.ansible_provider import AnsibleSetupProvider
File “/usr/local/lib/python2.7/dist-packages/elasticluster/providers/ansible_provider.py”, line 30, in
import ansible.callbacks as anscb
ImportError: No module named callbacks
I have installed/upgraded ansible several times, but the error does not disappear. I’m also not a python developer, so any help would be very welcome.
Thanks,
manuele