CLI extension installation failing with 2.42.0
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
## Describe the bug
**Command Name**
`az extension add --upgrade --name scvmm`
**Errors:**
```
An error occurred. Pip failed with status code 2. Use --debug for more information.
File "xml\parsers\expat.py", line 4, in
ModuleNotFoundError: No module named 'pyexpat'
```
## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- _Put any pre-requisite steps here..._
- `az extension add --upgrade --name {} --debug`
With 2.41.0 AZ Cli version the command works fine without any error.
## Expected Behavior
The CLI extension should have been installed without any error.
## Environment Summary
```
Windows-10-10.0.22621-SP0
Python 3.10.8
Installer: MSI
azure-cli 2.42.0
Extensions:
arcappliance 0.2.32-upgrade
customlocation 0.1.3
k8s-extension 1.3.6
Dependencies:
msal 1.20.0
azure-mgmt-resource 21.1.0b1
```
## Additional Context
This seems to be some regression between 2.41.0 CLI version and 2.42.0 CLI version
[extensioninstallationerror.txt](https://github.com/Azure/azure-cli/files/10129599/extensioninstallationerror.txt)
Contributor guide
Assessment
This issue has not been assessed yet.