CLI fails to import "requests" package
See original GitHub issueDescription
Outline the issue here: az login: ‘ValueError: need more than 2 values to unpack’
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: curl -L https://aka.ms/InstallAzureCli | bash
CLI Version: What version of the CLI and modules are installed? (Use az --version
)
Answer here: 2.0.6
OS Version: What OS and version are you using?
Answer here: macOS Sierra 10.12.5
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: terminal/bash
EVW-MBA-2013:~ eric$ az login Traceback (most recent call last): File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 162, in _run_module_as_main “main”, fname, loader, pkg_name) File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 72, in _run_code exec code in run_globals File “/Users/eric/lib/azure-cli/lib/python2.7/site-packages/azure/cli/main.py”, line 23, in <module> exit_code = azure.cli.main.main(args) File “/Users/eric/lib/azure-cli/lib/python2.7/site-packages/azure/cli/main.py”, line 52, in main error_code = handle_exception(ex) File “/Users/eric/lib/azure-cli/lib/python2.7/site-packages/azure/cli/core/util.py”, line 34, in handle_exception from msrestazure.azure_exceptions import CloudError File “/Users/eric/lib/azure-cli/lib/python2.7/site-packages/msrestazure/init.py”, line 28, in <module> from .azure_configuration import AzureConfiguration File “/Users/eric/lib/azure-cli/lib/python2.7/site-packages/msrestazure/azure_configuration.py”, line 33, in <module> from msrest import Configuration File “/Users/eric/lib/azure-cli/lib/python2.7/site-packages/msrest/init.py”, line 27, in <module> from .configuration import Configuration File “/Users/eric/lib/azure-cli/lib/python2.7/site-packages/msrest/configuration.py”, line 36, in <module> import requests File “/Users/eric/lib/azure-cli/lib/python2.7/site-packages/requests/init.py”, line 49, in <module> major, minor, patch = urllib3.version.split(‘.’)[:3] ValueError: need more than 2 values to unpack
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (3 by maintainers)
Top GitHub Comments
verified on FreeBSD 11. Works. Thank you.
Verified in macOS, thx.