[Python-modules-team] Bug#962952: azure-cli: exception when connecting to azure services

Luca Boccassi bluca at debian.org
Fri Jul 10 09:54:40 BST 2020


Control: severity -1 important

On Tue, 16 Jun 2020 19:40:46 +0530 Ritesh Raj Sarraf <rrs at debian.org> wrote:
> Package: azure-cli
> Version: 2.6.0-1
> Severity: important
> 
> rrs at priyasi:~/NoBackup$ az vm user update --resource-group lab000040-obs-ubuntu-docker-494104 --name obs-ubuntu-docker --username rrs --password XXXXXXXX
> 
> The command failed with an unexpected error. Here is the traceback:
> 
> No module named 'antlr4'
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/knack/cli.py", line 215, in invoke
>     cmd_result = self.invocation.execute(args)
>   File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 553, in execute
>     self.commands_loader.load_arguments(command)
>   File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 345, in load_arguments
>     loader.load_arguments(command)  # this adds entries to the argument registries
>   File "/usr/lib/python3/dist-packages/azure/cli/command_modules/vm/__init__.py", line 31, in load_arguments
>     from azure.cli.command_modules.vm._params import load_arguments
>   File "/usr/lib/python3/dist-packages/azure/cli/command_modules/vm/_params.py", line 31, in <module>
>     from azure.cli.command_modules.monitor.actions import get_period_type
>   File "/usr/lib/python3/dist-packages/azure/cli/command_modules/monitor/actions.py", line 7, in <module>
>     import antlr4
> ModuleNotFoundError: No module named 'antlr4'
> 
> To open an issue, please run: 'az feedback'
> 19:37 ♒ ॐ ♅ ⛢   ☹ 😟=> 1  
> 
> 
> I couldn't find any antlr4 named python module in Debian.

Hi,

Thanks for the report. Yes, usage of antlr4 is unfortunate, as nobody
packages it (you can get it via pip as a workaround).

I'll ask if it's possible to downgrade to antlr3. If not, I'll try and
find the time to package and upload it, although I am a bit wary as I
know literally nothing about antlr.

(note that the monitor functionality is but one of the many features
and subcommands, hence the downgrade in severity).

-- 
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20200710/80854852/attachment.sig>


More information about the Python-modules-team mailing list