Skip to content

import name 'CaseInsensitiveDict' from 'azure.core.utils' when installing az extension #27380

@huliang-microsoft

Description

@huliang-microsoft

Describe the bug

Hi Azure Cli team,
We are using Azure Devops to build our service and we started to see this failure when we tried to install extensions:

sudo az extension add --name quota --version 0.1.0 -y
cannot import name 'CaseInsensitiveDict' from 'azure.core.utils' (/opt/az/lib/python3.10/site-packages/azure/core/utils/init.py)

We installed azure cli with:
sudo apt-get install -y --allow-downgrades azure-cli=2.39.0-1~focal

The previous successful pipeline runs are also 2.39.0-1 so I dont know what changed.

Thanks

Related command

sudo az extension add --name quota --version 0.1.0 -y

Errors

cannot import name 'CaseInsensitiveDict' from 'azure.core.utils' (/opt/az/lib/python3.10/site-packages/azure/core/utils/init.py)

Issue script & Debug output

cannot import name 'CaseInsensitiveDict' from 'azure.core.utils' (/opt/az/lib/python3.10/site-packages/azure/core/utils/init.py)

Expected behavior

The package should be installed

Environment Summary

azure-cli 2.39.0-1

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions