question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error : Unable to load extension azure-cli-ml

See original GitHub issue

Describe the Bug

It was working a couple of days ago when I ran the CI for installing azure ml extension and create a resource group through Azure CLI in Azure DevOps. Now it errors out saying it can’t find the command.

  • Command Name

    az extension add -n azure-cli-ml az ml workspace create -g $(azureml.resourceGroup) -w $(azureml.workspaceName) -l $(azureml.location) --exist-ok --yes
  • Errors

    Unable to load extension 'azure-cli-ml: No module named 'azureml._cli_common''. ... az: 'ml' is not in the 'az' command group. See 'az --help'.

To Reproduce


Expected Behavior

Previously Azure CLI on Azure DevOps Build will add the extension for azure-cli-ml and enables Azure CLI to create workspace through az ml workspace create.

Environment Summary

Windows-10-10.0.17134 Build 17134
Python 3.6.8
Installer: MSI

azure-cli 2.10.1
extensions:
  azure-cli-ml 1.9.0

Additional Context


Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

1reaction
j-socommented, Jan 6, 2021

I can’t repro this on my own DevOps pipeline.

In the past, I’ve seen compatibility issues due to a mismatch of packages (az extension add won’t warn for existing dependencies that are incompatible with the extension). This comes up often with DevOps pipelines because of custom docker images setting azureml packages to a certain version, and then a new version of the AzureML CLI is published. I haven’t seen it manifest itself in extension load errors before, but this is the only idea I have right now.

1reaction
swatig007commented, Jan 5, 2021

Thanks for the update. Re-opening the issue and assigning to @lostmygithubaccount . @lostmygithubaccount can you please take a look since this is still an issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure MLv2 CLI extension not recognized in DevOps
The pipeline was working fine yesterday, but now results in an error saying that 'ml' is misspelled or not recognized.
Read more >
az ml run - Microsoft Learn
This reference is part of the azure-cli-ml extension for the Azure CLI (version 2.0.28 or higher). The extension will automatically install the first...
Read more >
Cannot Use the ML CLI v2 - Microsoft Q&A
I personally uninstalled older version of azure cli and installed the latest version of Azure cli and then installed the azure ml cli...
Read more >
Release notes & updates – Azure CLI - Microsoft Learn
Learn about the latest Azure Command-Line Interface (CLI) release notes and updates for both the current and beta versions of the CLI.
Read more >
Install the Azure CLI on Linux - Microsoft Learn
Since Windows Subsystem for Linux (WSL) is a system call translation layer on top of the Windows platform, you might experience an error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found