Package: azure-cli
Version: 2.37.0-2
Severity: important

Dear Maintainer,

az cli fails due to a missing dependency:

$  az aks get-upgrades --resource-group alilo-dev --name alilo-dev 
The command failed with an unexpected error. Here is the traceback:
No module named 'azure.mgmt.containerservice.v2022_04_01'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", 
line 561, in execute
    self.commands_loader.load_arguments(command)
  File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 515, 
in load_arguments
    self.command_table[command].load_arguments()  # this loads the arguments 
via reflection
  File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", 
line 318, in load_arguments
    super(AzCliCommand, self).load_arguments()
  File "/usr/lib/python3/dist-packages/knack/commands.py", line 104, in 
load_arguments
    cmd_args = self.arguments_loader()
  File 
"/usr/lib/python3/dist-packages/azure/cli/core/commands/command_operation.py", 
line 125, in arguments_loader
    op = self.get_op_handler(self.op_path)
  File 
"/usr/lib/python3/dist-packages/azure/cli/core/commands/command_operation.py", 
line 59, in get_op_handler
    handler = import_module(mod_to_import)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'azure.mgmt.containerservice.v2022_04_01'
To open an issue, please run: 'az feedback'

Can you check what goind on ?

All the best

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

Kernel: Linux 5.18.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
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.10.4-1+b1
ii  python3-azure-cli  2.37.0-2

azure-cli recommends no packages.

azure-cli suggests no packages.

-- no debconf information

Reply via email to