azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

azureml-dataset-runtime (failed to build numpy)

Open nagydavid opened this issue 2 years ago • 20 comments

  • azureml-dataset-runtime:
  • 1.43.0:
  • macOS Monterey (Silicon M1 Pro):
  • 3.8.13, 3.9.13, 3.10.4:

Describe the bug

ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
[end of output]

To Reproduce

pip install azureml-dataset-runtime

Expected behavior Library installs as expected Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here. error_msg.txt

nagydavid avatar Jun 29 '22 09:06 nagydavid

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Jun 29 '22 19:06 ghost

Hi @nagydavid thanks for the feedback. We will investigate asap. @azureml-github

l0lawrence avatar Jun 29 '22 19:06 l0lawrence

@nagydavid Thx for providing the feedback. This issue sounds like is caused by numpy not being supported natively on M1. Have you also reported this to numpy? One workaround is to use Rosetta to run Python on your M1 Mac.

luigiw avatar Jun 29 '22 20:06 luigiw

@luigiw @l0lawrence Thanks for the answer, but numpy is natively supported on M1, it seems the version that rely on using not the latest numpy version.

nagydavid avatar Jun 30 '22 11:06 nagydavid

So according to the installation logs, the library dependent on 1.19.4, where the latest release of numpy is 1.23.0

nagydavid avatar Jul 01 '22 08:07 nagydavid

Hi @bandsina @luigiw @l0lawrence May I have an update on the possible solutions?

Thanks in advance

nagydavid avatar Jul 05 '22 09:07 nagydavid

@nagydavid Sorry to be a bearer of bad news, but M1 is currently not officially supported. We do have work planned to add support for M1, but exact timeframe is currently uncertain. As a work around you can use x86 compatible python environment, like this one for conda:

https://towardsdatascience.com/how-to-manage-conda-environments-on-an-apple-silicon-m1-mac-1e29cb3bad12

CONDA_SUBDIR=osx-64 conda create -n myenv_x86 python=3.9
conda activate myenv_x86
conda config --env --set subdir osx-64

anliakho2 avatar Jul 07 '22 00:07 anliakho2

Thanks for the answer @anliakho2 :)

nagydavid avatar Jul 08 '22 06:07 nagydavid

Hi @nagydavid. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

ghost avatar Jul 08 '22 17:07 ghost

Hi @nagydavid, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.

ghost avatar Jul 15 '22 22:07 ghost

Hi, I am getting this issue, I cannot install the library on my M1 pro

DanielGumbletonWood avatar Aug 19 '22 14:08 DanielGumbletonWood

Hi, I am also still getting this issue, /unresolve

Waddaben avatar Sep 09 '22 12:09 Waddaben

Hi Waddaben, only the original author of the issue can ask that it be unresolved. Please open a new issue with your scenario and details if you would like to discuss this topic with the team.

ghost avatar Sep 09 '22 12:09 ghost

/unresolve

nagydavid avatar Sep 09 '22 14:09 nagydavid

I am also getting the same issue:

macOS Monterey 12.5 Apple M1 Pro Python 3.8.13

 × Encountered error while trying to install package.
      ╰─> numpy
      
      note: This is an issue with the package mentioned above, not pip.
      hint: See above for output from the failure.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

To reproduce:

pip install azureml-dataset-runtime

lloydhamilton avatar Sep 27 '22 08:09 lloydhamilton

I am facing same issue on Windows Python version 3.10.4

AsimKarel avatar Sep 27 '22 11:09 AsimKarel

Have the same problem, M1, Mac OS Ventura, python 3.9.6!

EliasCodepan avatar Nov 15 '22 12:11 EliasCodepan

Same here, M1, Mac OS, Python 3.9.6

HeathArhturLouis avatar Nov 17 '22 14:11 HeathArhturLouis

@anliakho2 Can you provide an update on this issue? Thank you.

luigiw avatar Nov 21 '22 20:11 luigiw

Same issue here, M2 macbook air

rpryzant avatar Jan 04 '23 02:01 rpryzant

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github, @Azure/azure-ml-sdk.

Issue Details
  • azureml-dataset-runtime:
  • 1.43.0:
  • macOS Monterey (Silicon M1 Pro):
  • 3.8.13, 3.9.13, 3.10.4:

Describe the bug

ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
[end of output]

To Reproduce

pip install azureml-dataset-runtime

Expected behavior Library installs as expected Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here. error_msg.txt

Author: nagydavid
Assignees: luigiw
Labels:

question, Machine Learning, Service Attention, Client, customer-reported, needs-team-attention, CXP Attention

Milestone: -

ghost avatar Apr 03 '23 19:04 ghost

Hey I am having the same issue with M1 Mac on Sonoma 14.2.1 using python 3.10. Has there been any movement on this issue?

Dekermanjian avatar Dec 24 '23 04:12 Dekermanjian

Hi @nagydavid, we deeply appreciate your input into this project. Regrettably, this issue has remained unresolved for over 2 years and inactive for 30 days, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.

github-actions[bot] avatar Jun 28 '24 18:06 github-actions[bot]