Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure CLI V2 (azure-cli-2.45.0.msi) Error 1 module to load starting with 'azext_': got [] #53

Open
bebound opened this issue Feb 27, 2023 · 1 comment

Comments

@bebound
Copy link
Owner

bebound commented Feb 27, 2023

Encountered the error and tried to reinstall (repair, remove, install) Azure CLI azure-cli-2.45.0.msi but kept getting same:

Terminal
(base) PS C:\Users\DirName> az version
The command failed with an unexpected error. Here is the traceback:
Expected 1 module to load starting with 'azext_': got []
Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 517, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/init.py", line 426, in load_command_table
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/init.py", line 320, in _update_command_table_from_extensions
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/init.py", line 307, in filter_modname
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/init.py", line 308, in get_extension_modname
AssertionError: Expected 1 module to load starting with 'azext
': got []
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

How did I get there?
I was tring to install azure-cli-ml exension and it corrupted the Azure CLI.

Install and set up the CLI (v2) - Azure Machine Learning | Microsoft Learn

Copy from https://github.com/Azure/azure-cli/issues/25473

@similar-bot-test
Copy link

Find similar issue https://github.com/Azure/azure-cli/issues/16188.

Issue title AssertionError: Expected 1 module to load starting with 'azext_': got []
Create time 2020-12-08
Comment number 7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant