Azure / Azure/azure-cli

Seeing this error while running az interactive --update

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

Description

Seeing this error while running az interactive --update**Command Name**
`az interactive`

I ran this once: az interactive --update
and it got stuck at a question on sending telemetry and I press ctrl + C.

The subsequent executions seems to throw below error.

**Errors:**
```
'azext_interactive'
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
six.reraise(*sys.exc_info())
...
cli/command_modules/interactive/custom.py, ln 27, in start_shell
reload_extension(INTERACTIVE_EXTENSION_NAME)
cli/core/extension/operations.py, ln 408, in reload_extension
return reload_module(extension_module if extension_module else get_extension_modname(ext_name=extension_name))
azure/cli/core/util.py, ln 697, in reload_module
reload(sys.modules[module])
KeyError: 'azext_interactive'
```

## 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 interactive --update`

## Expected Behavior

## Environment Summary
```
Linux-4.15.0-1098-azure-x86_64-with-debian-stretch-sid (Cloud Shell)
Python 3.6.10
Installer: DEB

azure-cli 2.13.0

Extensions:
interactive 0.4.4
ai-examples 0.2.4

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