azure-cli
azure-cli copied to clipboard
Az image list does not work
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az vm image list
Errors:
No module named 'antlr4'
Traceback (most recent call last):
lib/python3/dist-packages/knack/cli.py, ln 206, in invoke
cmd_result = self.invocation.execute(args)
azure/cli/core/commands/__init__.py, ln 528, in execute
self.commands_loader.load_arguments(command)
dist-packages/azure/cli/core/__init__.py, ln 300, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
azure/cli/command_modules/vm/__init__.py, ln 31, in load_arguments
from azure.cli.command_modules.vm._params import load_arguments
azure/cli/command_modules/vm/_params.py, ln 31, in <module>
from azure.cli.command_modules.monitor.actions import get_period_type
azure/cli/command_modules/monitor/actions.py, ln 7, in <module>
import antlr4
ModuleNotFoundError: No module named 'antlr4'
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here...
az vm image list
Expected Behavior
Environment Summary
Linux-5.4.0-42-generic-x86_64-with-glibc2.29
Python 3.8.2
Shell: bash
azure-cli 2.0.81
Extensions:
azure-devops 0.17.0
Additional Context
hi @sysadmin-exe could you pls check if it's same issue as https://github.com/Azure/azure-cli/issues/14011? a solution is to uninstall 2.0.81 and install latest azure cli version
Please first uninstall azure-cli 2.0.81 and its dependencies:
sudo apt remove azure-cli -y && sudo apt autoremove -y
Then install the latest azure-cli:
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
HI @yungezz, yea, must be related as the resolution fixed the issue. Thanks
thanks for the update. Will close the issue for now, pls feel free to create new issue if any other ask.