Azure / Azure/azure-cli

ImportError: cannot import name 'SET' in cli 2.24.2

Open
#18,419 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-platform-engineering-squad Core feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az version`

**Errors:**
```
cannot import name 'SET'
Traceback (most recent call last):
amlmodule\lib\site-packages\knack\cli.py, ln 231, in invoke
cmd_result = self.invocation.execute(args)
azure\cli\core\commands\__init__.py, ln 556, in execute
self.commands_loader.load_arguments(command)
site-packages\azure\cli\core\__init__.py, ln 518, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
azure\cli\command_modules\resource\__init__.py, ln 33, in load_arguments
load_arguments(self, command)
azure\cli\command_modules\resource\_params.py, ln 20, in load_arguments
from azure.cli.core.local_context import LocalContextAttribute, SET, ALL
ImportError: cannot import name 'SET'
```

## 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 version`

## Expected Behavior

## Environment Summary
```
Windows-10-10.0.19041-SP0
Python 3.6.10
Installer: PIP

azure-cli 2.24.2
azure-cli-ml 0.1.0.38576839

Extensions:
azure-cli-ml 0.1.0.38576839
ml 0.0.79

```
## Additional Context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.