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

Issue with inventory script azure_rm.py importing network_management_client #11

Open jessecooper opened 8 years ago

jessecooper commented 8 years ago

I am currently getting the following error when trying to run the inventory script:

The Azure python sdk is not installed (try 'pip install azure') - No module named network_management_client

pip search azure
...
azure-mgmt-network (0.20.1)               - Microsoft Azure Network Resource Management Client Library for Python
  INSTALLED: 0.20.1 (latest)
...

When I try to import manually:

>>> from azure.mgmt.network.network_management_client import NetworkManagementClient
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named network_management_client

Please let me know if there is any additional information I can provide.

jessecooper commented 8 years ago

pip install azure==2.0.0rc2 fixed the issue as stated in this doc: https://docs.ansible.com/ansible/guide_azure.html#providing-credentials-to-azure-modules

MBlagui commented 7 years ago

Hi got the same issue while using azure v 2.0.0 no more RC? Should we roll back ?

AntonSizov commented 7 years ago

@MBlagui try rollback to rc.

sudo pip install 'azure==2.0.0rc5' --upgrade
MBlagui commented 7 years ago

Yep rolling back solved it. But strange why ansible support stick to RC & didn't follow RC6 or release support.

palmerabollo commented 7 years ago

@jessecooper I think we should reopen this issue since 2.0.0 (final) doesn't work either. We are stuck to 2.0.0rc6

jessecooper commented 7 years ago

I have reopened this issue as it seems the module needs to be updated to work with the latest azure package.

missnebun commented 6 years ago

Just hit this bug now ...