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

az ml 2.24.0 not compatible with mcr.microsoft.com/azure-cli:2.58.0 #7385

Open
danigian opened this issue Mar 15, 2024 · 4 comments
Open

az ml 2.24.0 not compatible with mcr.microsoft.com/azure-cli:2.58.0 #7385

danigian opened this issue Mar 15, 2024 · 4 comments
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. extension/ml Machine Learning Service Attention This issue is responsible by Azure service team.

Comments

@danigian
Copy link

Describe the bug

az ml 2.24.0 extension is not compatible with container image 'mcr.microsoft.com/azure-cli:2.58.0'

This is related to the newly added dependency on azureml-dataprep-rslex which has no musllinux compatible distributions

Related command

az extension add --name ml --version 2.24.0

Errors

az extension add --name ml --version 2.24.0

Default enabled including preview versions for extension installation now. Disabled in May 2024. Use '--allow-preview true' to enable it specifically if needed. Use '--allow-preview false' to install stable version only.
An error occurred. Pip failed with status code 1. Use --debug for more information.

Issue script & Debug output

...
INFO: pip is looking at multiple versions of ml to determine which version is compatible with other requirements. This could take a while.
Will try a different candidate, due to conflict:
    ml 2.24.0 depends on azureml-dataprep-rslex>=2.22.0
ERROR: Could not find a version that satisfies the requirement azureml-dataprep-rslex>=2.22.0 (from ml) (from versions: none)
ERROR: No matching distribution found for azureml-dataprep-rslex>=2.22.0
...

Expected behavior

I should be able to install the ML extension on a Microsoft-provided Azure CLI container image

Environment Summary

azure-cli 2.58.0

core 2.58.0
telemetry 1.1.0

Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2

Python location '/usr/local/bin/python'
Extensions directory '/root/.azure/cliextensions'

Python (Linux) 3.11.8 (main, Feb 7 2024, 23:20:20) [GCC 13.2.1 20231014]

Additional context

No response

@danigian danigian added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Mar 15, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 15, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Service Attention This issue is responsible by Azure service team. Machine Learning extension/ml labels Mar 15, 2024
@jsburckhardt
Copy link

jsburckhardt commented Mar 19, 2024

same here - I reproduced it within the container and try install ml extension. Meanwhile if you install v2.23.0 it works but it was complaining about some packages:

  • If i try directly 2.23.0:
docker run -it --rm  mcr.microsoft.com/azure-cli:2.58.0 az extension add -n ml --version 2.23.0 --debug

error:
image

  • Ifi i install the packages in the list it works
apk add gcc python3-dev musl-dev linux-headers
az extension add --name ml --version  2.23.0

image

@YusakuNo1
Copy link
Member

YusakuNo1 commented Apr 4, 2024

Summary:

  1. CLI 2.24.0 introduces a hard dependency to package azureml-dataprep-rslex. azureml-dataprep-rslex was the dependency for ML extension in 3+ years, but it was optional.
  2. azureml-dataprep-rslex doesn't have a release for Linux Alpine. azureml-dataprep-rslex team claimed to support Linux Alpine could be hard and they don't have requests to support Linux Alpine distribution.

Options (details are in internal thread):

  • Remove the hard dependency of azureml-dataprep-rslex from Azure CLI ML extension.
  • Skip the metadata checking for this dependency.

Next Step:
The PR for option 1 is ready, while we are still looking for the input from Azure CLI team for option 2

@YusakuNo1
Copy link
Member

FYI: the fix is released at CLI 2.25.1, please verify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. extension/ml Machine Learning Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants