{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/644","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/644/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/644/comments","events_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/644/events","html_url":"https://github.com/Azure/azure-sdk-for-python/issues/644","id":161845563,"number":644,"title":"msrest and msrestazure dependencies not installed","user":{"login":"freefood89","id":1236436,"avatar_url":"https://avatars.githubusercontent.com/u/1236436?v=3","gravatar_id":"","url":"https://api.github.com/users/freefood89","html_url":"https://github.com/freefood89","followers_url":"https://api.github.com/users/freefood89/followers","following_url":"https://api.github.com/users/freefood89/following{/other_user}","gists_url":"https://api.github.com/users/freefood89/gists{/gist_id}","starred_url":"https://api.github.com/users/freefood89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freefood89/subscriptions","organizations_url":"https://api.github.com/users/freefood89/orgs","repos_url":"https://api.github.com/users/freefood89/repos","events_url":"https://api.github.com/users/freefood89/events{/privacy}","received_events_url":"https://api.github.com/users/freefood89/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-23T05:54:25Z","updated_at":"2016-08-08T09:08:41Z","closed_at":null,"body":"Is it just me, or does this package not install dependencies?\r\n\r\n1. installed via `pip3 install azure`\r\n`from azure.common.credentials import UserPassCredentials` resulted in `ImportError: No module named 'msrest'`\r\n\r\n2. installed msrest via `pip3 install msrest`\r\n`from azure.common.credentials import UserPassCredentials` resulted in `ImportError: No module named 'msrestazure'`\r\n\r\n3. installed msrest azure via `pip3 install msrestazure`\r\n`from azure.common.credentials import UserPassCredentials` finally worked"},"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/comments/238181555","html_url":"https://github.com/Azure/azure-sdk-for-python/issues/644#issuecomment-238181555","issue_url":"https://api.github.com/repos/Azure/azure-sdk-for-python/issues/644","id":238181555,"user":{"login":"elemantalcode","id":20316451,"avatar_url":"https://avatars.githubusercontent.com/u/20316451?v=3","gravatar_id":"","url":"https://api.github.com/users/elemantalcode","html_url":"https://github.com/elemantalcode","followers_url":"https://api.github.com/users/elemantalcode/followers","following_url":"https://api.github.com/users/elemantalcode/following{/other_user}","gists_url":"https://api.github.com/users/elemantalcode/gists{/gist_id}","starred_url":"https://api.github.com/users/elemantalcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemantalcode/subscriptions","organizations_url":"https://api.github.com/users/elemantalcode/orgs","repos_url":"https://api.github.com/users/elemantalcode/repos","events_url":"https://api.github.com/users/elemantalcode/events{/privacy}","received_events_url":"https://api.github.com/users/elemantalcode/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T09:08:41Z","updated_at":"2016-08-08T09:08:41Z","body":"I seem to have the same problem. I initially did: `pip install azure==2.0.0rc5` and tried to run [https://github.com/ansible/ansible/blob/devel/contrib/inventory/azure_rm.py](https://github.com/ansible/ansible/blob/devel/contrib/inventory/azure_rm.py) but get:\r\n\r\n\r\n```\r\n[terraform@pc001 ~]$ ./azure_rm.py\r\nThe Azure python sdk is not installed (try 'pip install azure==2.0.0rc5') - No module named msrestazure.azure_exceptions\r\n\r\n[terraform@pc001 ~]$ pip install azure==2.0.0rc5\r\nRequirement already satisfied (use --upgrade to upgrade): azure==2.0.0rc5 in /usr/lib/python2.7/site-packages\r\nRequirement already satisfied (use --upgrade to upgrade): azure-storage==0.32.0 in /usr/lib/python2.7/site-packages (from azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-servicebus==0.20.2 in /usr/lib/python2.7/site-packages (from azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-servicemanagement-legacy==0.20.3 in /usr/lib/python2.7/site-packages (from azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-batch==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-graphrbac==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/lib/python2.7/site-packages (from azure-storage==0.32.0->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-nspkg in /usr/lib/python2.7/site-packages (from azure-storage==0.32.0->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): futures in /usr/lib/python2.7/site-packages (from azure-storage==0.32.0->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/site-packages (from azure-storage==0.32.0->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-common in /usr/lib/python2.7/site-packages (from azure-storage==0.32.0->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-scheduler==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-compute==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-keyvault==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-notificationhubs==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-cdn==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-powerbiembedded==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-redis==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-commerce==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-cognitiveservices==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-resource==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-storage==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-authorization==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-batch==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-network==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-logic==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-web==0.30.0rc5 in /usr/lib/python2.7/site-packages (from azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): six>=1.5 in /usr/lib/python2.7/site-packages (from python-dateutil->azure-storage==0.32.0->azure==2.0.0rc5)\r\nRequirement already satisfied (use --upgrade to upgrade): azure-mgmt-nspkg in /usr/lib/python2.7/site-packages (from azure-mgmt-scheduler==0.30.0rc5->azure-mgmt==0.30.0rc5->azure==2.0.0rc5)\r\n\r\n[terraform@pc001 ~]$ pip install msrestazure\r\nRequirement already satisfied (use --upgrade to upgrade): msrestazure in /usr/lib/python2.7/site-packages\r\nRequirement already satisfied (use --upgrade to upgrade): msrest>=0.4.0 in /usr/lib/python2.7/site-packages (from msrestazure)\r\nRequirement already satisfied (use --upgrade to upgrade): chardet>=2.3.0 in /usr/lib/python2.7/site-packages (from msrest>=0.4.0->msrestazure)\r\nRequirement already satisfied (use --upgrade to upgrade): certifi>=2015.9.6.2 in /usr/lib/python2.7/site-packages (from msrest>=0.4.0->msrestazure)\r\nRequirement already satisfied (use --upgrade to upgrade): enum34>=1.0.4 in /usr/lib/python2.7/site-packages (from msrest>=0.4.0->msrestazure)\r\nRequirement already satisfied (use --upgrade to upgrade): keyring>=5.6 in /usr/lib/python2.7/site-packages (from msrest>=0.4.0->msrestazure)\r\nRequirement already satisfied (use --upgrade to upgrade): isodate>=0.5.4 in /usr/lib/python2.7/site-packages (from msrest>=0.4.0->msrestazure)\r\nRequirement already satisfied (use --upgrade to upgrade): requests>=2.7.0 in /usr/lib/python2.7/site-packages (from msrest>=0.4.0->msrestazure)\r\nRequirement already satisfied (use --upgrade to upgrade): requests-oauthlib>=0.5.0 in /usr/lib/python2.7/site-packages (from msrest>=0.4.0->msrestazure)\r\nRequirement already satisfied (use --upgrade to upgrade): secretstorage; sys_platform == \"linux2\" or sys_platform == \"linux\" in /usr/lib/python2.7/site-packages (from keyring>=5.6->msrest>=0.4.0->msrestazure)\r\nRequirement already satisfied (use --upgrade to upgrade): oauthlib>=0.6.2 in /usr/lib/python2.7/site-packages (from requests-oauthlib>=0.5.0->msrest>=0.4.0->msrestazure)\r\nRequirement already satisfied (use --upgrade to upgrade): pycrypto in /usr/lib64/python2.7/site-packages (from secretstorage; sys_platform == \"linux2\" or sys_platform == \"linux\"->keyring>=5.6->msrest>=0.4.0->msrestazure)\r\n\r\n\r\n```\r\nmrestazure was not installed as a dependency during the initial install of `pip install azure`\r\n\r\nSome versioning:\r\nOS: Red Hat Enterprise Linux Server release 6.8 (Santiago)\r\nPIP: pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)\r\n\r\n**Please note** @lmazuel The above post is simply to showcase and inform that installing azure does not include all dependencies in specific situations as you've previously observed; the contrib script is out of scope for this section. (The fix was to point the contrib script to python 2.7 instead of 2.6). "}}
{"actor":{"display_login":"elemantalcode"}}