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

Cannot install ml extension #28600

Closed
AndriyDmytrenko opened this issue Mar 21, 2024 · 9 comments
Closed

Cannot install ml extension #28600

AndriyDmytrenko opened this issue Mar 21, 2024 · 9 comments
Labels
Auto-Resolve Auto resolve by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning az ml Possible-Solution Service Attention This issue is responsible by Azure service team. Similar-Issue

Comments

@AndriyDmytrenko
Copy link

Describe the bug

Cannot install ml extension, possibly due to python dependency issue.
The platform is MacOS arm64.

Related command

az extension add -n ml

Errors

An error occurred. Pip failed with status code 1. Use --debug for more information.

Issue script & Debug output

az-ml-debug.txt

Expected behavior

ml extension installed

Environment Summary

azure-cli 2.58.0

core 2.58.0
telemetry 1.1.0

Extensions:
aks-preview 2.0.0b6
alb 1.0.0
application-insights 1.2.0
appservice-kube 0.1.10
azure-devops 1.0.0
bastion 0.3.0
connectedk8s 1.6.7
customlocation 0.1.3
front-door 1.0.17
k8s-extension 1.6.1
ssh 2.0.3
storage-preview 1.0.0b1

Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2

Python location '/opt/homebrew/Cellar/azure-cli/2.58.0/libexec/bin/python'
Extensions directory '/Users/Andriy_Dmytrenko/.azure/cliextensions'

Python (Darwin) 3.11.8 (main, Feb 6 2024, 21:21:21) [Clang 15.0.0 (clang-1500.1.0.2.5)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

@AndriyDmytrenko AndriyDmytrenko added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Mar 21, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Mar 21, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 21, 2024

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

Copy link

Hi @AndriyDmytrenko
Find similar issue #22140.

Issue title azure-cli-ml installation fails on MacOS arm
Create time 2022-04-21
Comment number 13

Possible solution:
The issue seems to be related to the installation of cryptography package on MacOS arm64. The error message indicates that the wheel for cryptography cannot be built. The issue has been reported before and a workaround has been suggested by one of the users.

The workaround involves installing openssl.1 using Homebrew and setting the LDFLAGS and CPPFLAGS environment variables before running the az extension add command. Here are the steps:

brew install openssl.1
export LDFLAGS="-L/opt/homebrew/opt/openssl.1/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl.1/include"
az extension add -n ml -y

This should fix the issue. If you face any issues while migration, please raise an issue, the Azure CLI team would be happy to help.


Please confirm if this resolves your issue.

@yonzhan yonzhan added Machine Learning az ml Service Attention This issue is responsible by Azure service team. labels Mar 21, 2024
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github.

@NMontanaBrown
Copy link

NMontanaBrown commented Mar 21, 2024

Hi, I am having the same issue - unfortunately the proposed fix does not resolve the installation problem.

EDIT: Flagging the typo from the bot , which I presume meant [email protected] vs openssl.1:

brew install [email protected]
export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib"
export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include"
az extension add -n ml -y

@AndriyDmytrenko
Copy link
Author

Hi, I am having the same issue - unfortunately the proposed fix does not resolve the installation problem.

EDIT: Flagging the typo from the bot , which I presume meant [email protected] vs openssl.1:

brew install [email protected]
export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib"
export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include"
az extension add -n ml -y

The same, it doesn't fix the issue for me either.

@bebound
Copy link
Contributor

bebound commented Mar 28, 2024

According to the log:

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

azureml-dataprep-rslex does not provide wheel for MacOS arm64, so ml can't be installed
I think you need to report to azure-sdk-for-python

@jake-ise
Copy link

jake-ise commented Apr 2, 2024

A work around that may help is to try an older version for now.

You can list older versions with:
az extension list-versions -n ml --output table

And then select one with:
az extension add --name ml --version 2.23.0

For me, 2.23.0 was the newest version that I could install without similar errors.

@luigiw
Copy link

luigiw commented Apr 18, 2024

We fixed this with 2.25.1 version of ml extension.

@AndriyDmytrenko
Copy link
Author

Installed successfully version 2.25.1.
Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Resolve Auto resolve by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning az ml Possible-Solution Service Attention This issue is responsible by Azure service team. Similar-Issue
Projects
None yet
Development

No branches or pull requests

6 participants