ansible / azure-testing

Former home for Ansible Azure module testing. Testing is now part of the main Ansible repository.
MIT License
21 stars 22 forks source link

Error: Do you have azure>=2.0.0 installed? #13

Open rnkhouse opened 7 years ago

rnkhouse commented 7 years ago

I am getting below error when I run ansible playbook:

Do you have azure>=2.0.0 installed? Try pip install 'azure>=2.0.0' --upgrade- No module named containerservice

Ansible version:

ansible 2.4.0.0 config file = /var/www/Ansible/ansible.cfg configured module search path = [u'/home/vagrant/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python2.7/dist-packages/ansible executable location = /usr/local/bin/ansible python version = 2.7.12 (default, Jul 18 2016, 15:02:52) [GCC 4.8.4]

Azure:

Name: azure Version: 2.0.0rc5 Summary: Microsoft Azure Client Libraries for Python Home-page: https://github.com/Azure/azure-sdk-for-python Author: Microsoft Corporation Author-email: ptvshelp@microsoft.com License: MIT License Location: /usr/local/lib/python2.7/dist-packages Requires: azure-servicemanagement-legacy, azure-batch, azure-servicebus, azure-mgmt, azure-storage, azure-graphrbac

I tried to install this: pip install azure-mgmt-containerservice But, now below error is coming:

Installed resource client version is 0.30.0rc5. The supported version is 1.1.0. Try pip install azure>=2.0.0 --upgrade

flemzord commented 6 years ago

do you have a solution ? @rnkhouse

rnkhouse commented 6 years ago

no @flemzord

killerjoe1990 commented 6 years ago

try sudo easy_install ansible[azure]

total steps for me were:

sudo easy_install pip
sudo pip install ansible 
sudo pip install packaging
sudo easy_install msrestazure
sudo easy_install ansible[azure]