Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.64k stars 2.84k forks source link

Error "AttributeError: 'dict' object has no attribute 'NUMPY_SETUP'" when installing azureml-train-automl #36594

Open WillFrasier opened 4 months ago

WillFrasier commented 4 months ago

Describe the bug I want to use AutoML from a notebook. After creating a brand new virtual env and installing the following packages (ipykernel pandas numpy scikit-learn azureml-core) I get an error when installing "azureml-train-automl". The error appears to be "AttributeError: 'dict' object has no attribute '__NUMPY_SETUP__'" but i could be reading the logs incorrectly.

To Reproduce Steps to reproduce the behavior:

  1. New virtual env with python 3.11.9
  2. Activate venv
  3. pip install ipykernel pandas numpy scikit-learn azureml-core
  4. pip install azureml-train-automl

Expected behavior azureml-train-automl to install correctly.

Screenshots pip install azureml-train-automl error.txt

Additional context

github-actions[bot] commented 4 months ago

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

swathipil commented 4 months ago

Hi @WillFrasier - thanks for opening an issue. We'll take a look asap!

jeff-shepherd commented 4 months ago

@WillFrasier The package azureml-train-automl does not currently support Python 3.11. https://pypi.org/project/azureml-train-automl/ includes Requires: Python <3.11, >=3.8 Can you try with Python 3.10 ?