{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/1344","repository_url":"https://api.github.com/repos/Azure/azure-sdk-for-python","labels_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/1344/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/1344/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/1344/events","html_url":"https://github.com/Azure/azure-sdk-for-python/issues/1344","id":247674050,"number":1344,"title":"No module named common.credentials","user":{"login":"OlehMartushevskyi","id":20438686,"avatar_url":"https://avatars2.githubusercontent.com/u/20438686?v=4","gravatar_id":"","url":"https://api.github.com/users/OlehMartushevskyi","html_url":"https://github.com/OlehMartushevskyi","followers_url":"https://api.github.com/users/OlehMartushevskyi/followers","following_url":"https://api.github.com/users/OlehMartushevskyi/following{/other_user}","gists_url":"https://api.github.com/users/OlehMartushevskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/OlehMartushevskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlehMartushevskyi/subscriptions","organizations_url":"https://api.github.com/users/OlehMartushevskyi/orgs","repos_url":"https://api.github.com/users/OlehMartushevskyi/repos","events_url":"https://api.github.com/users/OlehMartushevskyi/events{/privacy}","received_events_url":"https://api.github.com/users/OlehMartushevskyi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-03T11:18:27Z","updated_at":"2017-08-03T15:17:35Z","closed_at":"2017-08-03T15:17:35Z","body":"When I try to run the following code:\r\n```\r\nfrom azure.common.credentials import UserPassCredentials\r\nfrom azure.mgmt.resource import ResourceManagementClient\r\nfrom azure.mgmt.storage import StorageManagementClient\r\nfrom azure.storage import CloudStorageAccount\r\nfrom azure.storage.blob.models import ContentSettings, PublicAccess\r\n\r\ncredentials = UserPassCredentials('**', '**')\r\nsubscription_id = '**'\r\n\r\nresource_client = ResourceManagementClient(credentials, subscription_id)\r\nstorage_client = StorageManagementClient(credentials, subscription_id)\r\n```\r\nI get the following error:\r\n`ImportError: No module named common.credentials`\r\n\r\nI have installed azure libraries using pip:\r\n\r\n`sudo pip install azure==2.0.0rc6`\r\n\r\nHere is the list of libraries which were installed:\r\n`Successfully installed azure-2.0.0rc6 azure-batch-1.0.0 azure-common-1.1.8 azure-mgmt-0.30.0rc6 azure-mgmt-batch-1.0.0 azure-mgmt-compute-0.30.0rc6 azure-mgmt-keyvault-0.30.0rc6 azure-mgmt-logic-1.0.0 azure-mgmt-network-0.30.0rc6 azure-mgmt-nspkg-2.0.0 azure-mgmt-redis-1.0.0 azure-mgmt-resource-0.30.0rc6 azure-mgmt-scheduler-1.0.0 azure-mgmt-storage-0.30.0rc6 azure-nspkg-2.0.0 azure-servicebus-0.20.3 azure-servicemanagement-legacy-0.20.4 azure-storage-0.33.0 msrestazure-0.4.9`\r\n\r\nAlso, I have updated the versions of msrest libraries to:\r\n```\r\nmsrest (0.4.11)\r\nmsrestazure (0.4.11)\r\n```\r\nHow can I fix it? Maybe I have missed something."}}
{"actor":{"display_login":"OlehMartushevskyi"}}