Azure-sdk-for-python: ImportError: No module named common.credentials

Created on 6 Nov 2017  路  4Comments  路  Source: Azure/azure-sdk-for-python

Facing below issue on running my pyhton file:

Traceback (most recent call last):
File "test.py", line 10, in
from azure.common.credentials import ServicePrincipalCredentials
ImportError: No module named common.credentials

pip show 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: [email protected]
License: MIT License
Location: /usr/local/lib/python2.7/dist-packages
Requires: azure-batch, azure-servicemanagement-legacy, azure-graphrbac, azure-storage, azure-mgmt, azure-servicebus

Running: Ubunut 16.04.3 LTS

Thanks in advance.

Most helpful comment

For me there were some weird issues where I was unable to install azure-keyvault.

Uninstalling manually downloaded packages and running below commands worked for me:

git clone git://github.com/Azure/azure-sdk-for-python.git
cd azure-sdk-for-python
python setup.py install

All 4 comments

Resolved

@vnimbalkar What was the solution /fix for the above problem. I am still facing the same issue with the latest azure_common python sdk package

For me there were some weird issues where I was unable to install azure-keyvault.

Uninstalling manually downloaded packages and running below commands worked for me:

git clone git://github.com/Azure/azure-sdk-for-python.git
cd azure-sdk-for-python
python setup.py install

Thanks!!

Was this page helpful?
0 / 5 - 0 ratings