import name 'CaseInsensitiveDict' from 'azure.core.utils' when installing az extension
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### 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_
Contributor guide
Assessment
This issue has not been assessed yet.