Package: azure-cli Version: 2.18.0-1 Severity: important When trying to use az keyvault from this package, an exception is thrown. This prevents the operation from working.
$ az keyvault secret show --vault-name VAULTNAME -n KEY --query value --output
tsv
ERROR: CLIInternalError: The command failed with an unexpected error. Here is
the traceback:
ERROR: No module named 'azure.keyvault.v7_0'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py",
line 558, in execute
self.commands_loader.load_arguments(command)
File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 480,
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 315, in load_arguments
super(AzCliCommand, self).load_arguments()
File "/usr/lib/python3/dist-packages/knack/commands.py", line 106, in
load_arguments
cmd_args = self.arguments_loader()
File
"/usr/lib/python3/dist-packages/azure/cli/command_modules/keyvault/_command_type.py",
line 75, in keyvault_arguments_loader
op = get_op_handler()
File
"/usr/lib/python3/dist-packages/azure/cli/command_modules/keyvault/_command_type.py",
line 72, in get_op_handler
return
self.command_loader.get_op_handler(operations_tmpl.format(method_name))
File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 829,
in get_op_handler
op = import_module(mod_to_import)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'azure.keyvault.v7_0'
To open an issue, please run: 'az feedback'
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-5-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages azure-cli depends on:
ii python3 3.9.2-3
ii python3-azure-cli 2.18.0-1
azure-cli recommends no packages.
azure-cli suggests no packages.
-- no debconf information
--
brian m. carlson (he/him or they/them)
Houston, Texas, US
signature.asc
Description: PGP signature

