-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Describe the bug
az vm list fails with "ModuleNotFoundError: No module named 'azure.mgmt.compute'"
To Reproduce
Install azure-cli via home-brew on Mac
Login via az login
List VMs: az vm list --debug
No module named 'azure.mgmt.compute'
Traceback (most recent call last):
File "/usr/local/Cellar/azure-cli/2.0.47/libexec/lib/python3.7/site-packages/knack/cli.py", line 197, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/local/Cellar/azure-cli/2.0.47/libexec/lib/python3.7/site-packages/azure/cli/core/commands/init.py", line 262, in execute
self.commands_loader.load_arguments(command)
File "/usr/local/Cellar/azure-cli/2.0.47/libexec/lib/python3.7/site-packages/azure/cli/core/init.py", line 254, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
File "/usr/local/Cellar/azure-cli/2.0.47/libexec/lib/python3.7/site-packages/azure/cli/command_modules/vm/init.py", line 32, in load_arguments
load_arguments(self, command)
File "/usr/local/Cellar/azure-cli/2.0.47/libexec/lib/python3.7/site-packages/azure/cli/command_modules/vm/_params.py", line 27, in load_arguments
from azure.mgmt.compute.models import CachingTypes, UpgradeMode
ModuleNotFoundError: No module named 'azure.mgmt.compute'
Expected behavior
List virtual Machines?
Environment summary
Installed via Homebrew 1.7.7
OSX 10.13.6
azure-cli (2.0.47)
acr (2.1.6)
acs (2.3.6)
advisor (0.6.0)
ams (0.2.3)
appservice (0.2.5)
backup (1.2.1)
batch (3.4.0)
batchai (0.4.3)
billing (0.2.0)
botservice (0.1.1)
cdn (0.1.1)
cloud (2.1.0)
cognitiveservices (0.2.3)
command-modules-nspkg (2.0.2)
configure (2.0.18)
consumption (0.4.0)
container (0.3.5)
core (2.0.47)
cosmosdb (0.2.1)
dla (0.2.3)
dls (0.1.3)
dms (0.1.1)
eventgrid (0.2.0)
eventhubs (0.3.0)
extension (0.2.2)
feedback (2.1.4)
find (0.2.12)
hdinsight (0.1.0)
interactive (0.3.30)
iot (0.3.3)
iotcentral (0.1.2)
keyvault (2.2.4)
lab (0.1.1)
maps (0.3.2)
monitor (0.2.4)
network (2.2.6)
nspkg (3.0.3)
policyinsights (0.1.0)
profile (2.1.1)
rdbms (0.3.2)
redis (0.3.2)
relay (0.1.2)
reservations (0.4.0)
resource (2.1.4)
role (2.1.7)
search (0.1.1)
servicebus (0.3.0)
servicefabric (0.1.4)
signalr (1.0.0)
sql (2.1.4)
storage (2.2.2)
telemetry (1.0.0)
vm (2.2.4)
Python location '/usr/local/opt/python/bin/python3.7'
Extensions directory '/Users/ericgulatee/.azure/cliextensions'
Python (Darwin) 3.7.0 (default, Oct 2 2018, 09:20:07)
[Clang 10.0.0 (clang-1000.11.45.2)]
Legal docs and information: aka.ms/AzureCliLegal
Additional context