CLI fails to import "requests" package
Description
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
met same problem. How to resolve it?
I met this problem on FreeBSD 11.0 though curl -L https://aka.ms/InstallAzureCli | bash
Same here.
Ubuntu 14.04.1
Exactly the same problem as ericvanwijk; exactly same environment.
Darrens-MacBook-Pro:~ dazzur$ 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/dazzur/lib/azure-cli/lib/python2.7/site-packages/azure/cli/main.py", line 23, in
Same here on Raspberry03
File "/home/pi/lib/azure-cli/local/lib/python2.7/site-packages/requests/init.py", line 49, in
Please resolve cause having a CLI on Raspi would be great!
This issue is not az login specific, rather any commands sending http request on the wire should trigger this. Of course, az login usually is the first command you would run.
your totally right, nonetheless a solution is greatly appreciated Thanks Kamiel
We have made a new release with a fix that likely resolves this issue. Please verify, if still repro's please reactivate it
verified on FreeBSD 11. Works. Thank you.
Verified in macOS, thx.