Azure / Azure/azure-cli-extensions

Az ml extension fails with ERROR: The extension ml already exists

Open
#8,400 16 comments 5 reactions 0 assignees View on GitHub
Auto-Assign bug customer-reported extension/ml Machine Learning question Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Describe the bug

The same command was working until yesterday.
Az cli version 2.52.0
az ml version 2.30.0

Command run:
az ml online-endpoint show --subscription --resource-group --workspace --name --only-show-errors

cannot import name '_T' from 'marshmallow.fields' (/opt/az/azcliextensions/ml/marshmallow/fields.py)

STDERR: ERROR: An error occurred whilst updating.
ERROR: The extension ml already exists.
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: [Errno 17] File exists: '/opt/az/azcliextensions/ml'
Traceback (most recent call last):
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/extension/operations.py", line 429, in update_extension
_add_whl_ext(cli_ctx=cmd_cli_ctx, source=download_url, ext_sha256=ext_sha256,
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/extension/operations.py", line 113, in _add_whl_ext
raise CLIError('The extension {} already exists.'.format(extension_name))
knack.util.CLIError: The extension ml already exists.

### Related command

az ml online-endpoint show --subscription --resource-group --workspace --name --only-show-errors

### Errors
cannot import name '_T' from 'marshmallow.fields' (/opt/az/azcliextensions/ml/marshmallow/fields.py)

STDERR: ERROR: An error occurred whilst updating.
ERROR: The extension ml already exists.
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: [Errno 17] File exists: '/opt/az/azcliextensions/ml'
Traceback (most recent call last):
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/extension/operations.py", line 429, in update_extension
_add_whl_ext(cli_ctx=cmd_cli_ctx, source=download_url, ext_sha256=ext_sha256,
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/extension/operations.py", line 113, in _add_whl_ext
raise CLIError('The extension {} already exists.'.format(extension_name))
knack.util.CLIError: The extension ml already exists.

### Issue script & Debug output

Command run:
az ml online-endpoint show --subscription --resource-group --workspace --name --only-show-errors

cannot import name '_T' from 'marshmallow.fields' (/opt/az/azcliextensions/ml/marshmallow/fields.py)

STDERR: ERROR: An error occurred whilst updating.
ERROR: The extension ml already exists.
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: [Errno 17] File exists: '/opt/az/azcliextensions/ml'
Traceback (most recent call last):
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/extension/operations.py", line 429, in update_extension
_add_whl_ext(cli_ctx=cmd_cli_ctx, source=download_url, ext_sha256=ext_sha256,
File "/opt/az/lib/python3.10/site-packages/azure/cli/core/extension/operations.py", line 113, in _add_whl_ext
raise CLIError('The extension {} already exists.'.format(extension_name))
knack.util.CLIError: The extension ml already exists.

### Expected behavior

Show the az ml endpoint

### Environment Summary

Az cli version 2.52.0
az ml version 2.30.0
OS ubuntu 22.04

### Additional context

_No response_

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.