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.

azure-cli-ml installation fails on MacOS arm

See original GitHub 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:

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

When running --debug and scrolling through the log, I noticed that probably the problem is cryptography. Its wheel cannot be built:

Building wheels for collected packages: cryptography
  Created temporary directory: [some-temp-path]
  Destination directory: [some-temp-path]
  Building wheel for cryptography (pyproject.toml): started
  Running command Building wheel for cryptography (pyproject.toml)
  running bdist_wheel
  running build
  running build_py
  running egg_info
  writing src/cryptography.egg-info/PKG-INFO
  writing dependency_links to src/cryptography.egg-info/dependency_links.txt
  writing requirements to src/cryptography.egg-info/requires.txt
  writing top-level names to src/cryptography.egg-info/top_level.txt
  reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  no previously-included directories found matching 'docs/_build'
  warning: no previously-included files found matching 'vectors'
  warning: no previously-included files matching '*' found under directory 'vectors'
  warning: no previously-included files matching '*' found under directory '.github'
  warning: no previously-included files found matching 'release.py'
  warning: no previously-included files found matching '.coveragerc'
  warning: no previously-included files found matching 'codecov.yml'
  warning: no previously-included files found matching '.readthedocs.yml'
  warning: no previously-included files found matching 'dev-requirements.txt'
  warning: no previously-included files found matching 'rtd-requirements.txt'
  warning: no previously-included files found matching 'tox.ini'
  warning: no previously-included files matching '*' found under directory '.zuul.d'
  warning: no previously-included files matching '*' found under directory '.zuul.playbooks'
  adding license file 'LICENSE'
  adding license file 'LICENSE.APACHE'
  adding license file 'LICENSE.BSD'
  adding license file 'LICENSE.PSF'
  adding license file 'AUTHORS.rst'
  running build_ext
  generating cffi module 'build/temp.macosx-12-arm64-cpython-310/_padding.c'
  generating cffi module 'build/temp.macosx-12-arm64-cpython-310/_openssl.c'
  building '_openssl' extension
  build/temp.macosx-12-arm64-cpython-310/_openssl.c:575:10: fatal error: 'openssl/opensslv.h' file not found
  #include <openssl/opensslv.h>
           ^~~~~~~~~~~~~~~~~~~~
  1 error generated.

      =============================DEBUG ASSISTANCE=============================
      If you are seeing a compilation error please try the following steps to
      successfully install cryptography:
      1) Upgrade to the latest pip and try again. This will fix errors for most
         users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
      2) Read https://cryptography.io/en/latest/installation.html for specific
         instructions for your platform.
      3) Check our frequently asked questions for more information:
         https://cryptography.io/en/latest/faq.html
      =============================DEBUG ASSISTANCE=============================

  error: command '/usr/bin/clang' failed with exit code 1
  error: subprocess-exited-with-error

  × Building wheel for cryptography (pyproject.toml) did not run successfully.

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

macOS-12.3.1-arm64-arm-64bit, Darwin 21.4.0
Python 3.10.2
Installer: HOMEBREW

azure-cli 2.35.0

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
navba-MSFTcommented, Apr 28, 2022

@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.

2reactions
Riezeboscommented, Apr 26, 2022

The problem in https://github.com/Azure/azure-cli/issues/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 https://github.com/Azure/azure-cli/issues/16858 is not an issue anymore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >
Install the Azure CLI on macOS - Microsoft Learn
Learn how to install and run the Azure CLI on macOS using the homebrew package manager. The Azure CLI has been tested on...
Read more >
Error: Cannot install in Homebrew on ARM processor in Intel ...
This issue with new macbook pro M1 chip. Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!.
Read more >
What to do if your Ventura update is stuck - Macworld
macOS Ventura download errors: problems and fixes; Problem: macOS download ... Installing new versions of macOS on a Mac should be a pretty ......
Read more >
Installing MariaDB Server on macOS Using Homebrew
Contents. Upgrading MariaDB; Building MariaDB Server from source; Other resources. MariaDB Server is available for installation on macOS (formerly Mac OS X) ...
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