[Python-modules-team] Bug#958979: azure-cli: az ecr login crash
Dominique Dumont
dod at debian.org
Mon Apr 27 15:48:32 BST 2020
Package: azure-cli
Version: 2.0.81+ds-5
Severity: normal
Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
$ az acr login
The 'azure-devops' extension is not compatible with this version of the CLI.
You have CLI core version 2.0.81 and this extension requires a min of 2.2.0.
The command failed with an unexpected error. Here is the traceback:
cannot import name 'BlockBlobService' from 'azure.storage.blob' (/usr/lib/python3/dist-packages/azure/storage/blob/__init__.py)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 528, in execute
self.commands_loader.load_arguments(command)
File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 299, 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 291, in load_arguments
super(AzCliCommand, self).load_arguments()
File "/usr/lib/python3/dist-packages/knack/commands.py", line 97, in load_arguments
cmd_args = self.arguments_loader()
File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 496, in default_arguments_loader
op = handler or self.get_op_handler(operation, operation_group=kwargs.get('operation_group'))
File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 536, in get_op_handler
op = import_module(mod_to_import)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/azure/cli/command_modules/acr/custom.py", line 10, in <module>
from ._utils import (
File "/usr/lib/python3/dist-packages/azure/cli/command_modules/acr/_utils.py", line 28, in <module>
from ._archive_utils import upload_source_code, check_remote_source_code
File "/usr/lib/python3/dist-packages/azure/cli/command_modules/acr/_archive_utils.py", line 15, in <module>
from azure.storage.blob import BlockBlobService
ImportError: cannot import name 'BlockBlobService' from 'azure.storage.blob' (/usr/lib/python3/dist-packages/azure/storage/blob/__init__.py)
Note that latest azure-cli version on github is 2.4.0 which may fix
this issue.
All the best
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.5.0-2-amd64 (SMP w/16 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:fr (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
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.0.81+ds-5
azure-cli recommends no packages.
azure-cli suggests no packages.
-- no debconf information
More information about the Python-modules-team
mailing list