-
Notifications
You must be signed in to change notification settings - Fork 3k
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-ml installation fails on MacOS arm #22140
Comments
route to CXP team |
@EdAbati Thanks for reaching out to us and reporting this issue. We are looking into this. I will provide an update on this issue once I have more details. |
@EdAbati Could you please check if you are able to run the below command ? Awaiting your reply.
|
Hi @navba-MSFT , thank you for the quick reply. |
Hi! I had the same problem yesterday and today had some time to look into it. I have an M1 macbook. I was able to get the installation to work using:
(based on https://stackoverflow.com/questions/29651258/install-openssl-devel-on-mac) I'm 99% sure this will also solve the issue for I also tested the installation of the The workaround above can be used as a quick fix for people who find this issue, to make it work automatically it might be best to upgrade cryptography to 3.4.6 or higher. |
Awesome, thanks @Riezebos for the workaround! :) @navba-MSFT , it worked for now, but as @Riezebos said I also think the best/long term solution would be to upgrade the requirements so |
@EdAbati Thanks for getting back. I am glad that the issue is resolved now. Since the error is when building cryptography, This doc talks about the dependencies like rust and openssl which are required. Also refer this #16858, where there is discussion on pinning the Cryptography to 3.3.2 in AzCLI. I am doing some more research on this and I will update this thread and provide more info regarding the azure-cli-ml using newer version of cryptography once I have the details. |
@EdAbati Could you please confirm if you are using a Mac with an M1 chip ? Awaiting your reply. |
The problem in #16858 should only be a problem when the package needs to be built from source. If a wheel is available for your system type the installation should work without having rust. This is why it starts working on mac-arm64 starting with 3.4.6 as I mentioned above. Looking at the available wheels in 36.0.2 compared to 3.4, I would expect that #16858 is not an issue anymore. |
Hi @navba-MSFT , Yes I confirm that I have a Mac with M1. |
@EdAbati The fix for this issue is checked in for the v2 CLI (ml extension), and it will go out in the next release on 5/23. We recommend our customers to use the ml extension. If you face any issues while migration, please raise an issue, we would be happy to help. Thanks again @EdAbati and @Riezebos for reporting this issue. |
This is autogenerated. Please review and update as needed.
Describe the bug
Hi I am trying to install
azure-cli-ml
using the command below, but unfortunately it fails. Please see error below.Command Name
az extension add
Errors:
It looks like
pip
fails to install some libraries:When running
--debug
and scrolling through the log, I noticed that probably the problem iscryptography
. Its wheel cannot be built:Is it a known bug with MacOS with arm? Do you know how I could fix it?
Thanks :)
To Reproduce:
Steps to reproduce the behavior.
brew update && brew install azure-cli
az login
az extension add -n azure-cli-ml --debug
Expected Behavior
azure-cli-ml
installed successfully.Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: