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

Ritesh Raj Sarraf rrs at debian.org
Tue Jun 16 15:10:46 BST 2020


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.

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.6.0-2-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_USER
Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8), LANGUAGE=en_US (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages azure-cli depends on:
ii  python3            3.8.2-3
ii  python3-azure-cli  2.6.0-1

azure-cli recommends no packages.

azure-cli suggests no packages.

-- no debconf information


More information about the Python-modules-team mailing list