question

Kenny-8557 avatar image
0 Votes"
Kenny-8557 asked romungi-MSFT commented

Azure ML Tutorial - Failed to load entrypoint automl

I'm doing following tutorial. I run successfully "Create and run a Python script", but failed failed to run "Create a control script".

What could be wrong?

https://docs.microsoft.com/en-us/azure/machine-learning/tutorial-1st-experiment-hello-world

 azureuser@kensmlcompute:~/cloudfiles/code/Users/my.name/get-started$ python run-hello.py 
 Failure while loading azureml_run_type_providers. Failed to load entrypoint automl = 
 azureml.train.automl.run:AutoMLRun._from_run_dto with exception (pyarrow 4.0.0 
 (/anaconda/envs/azureml_py38/lib/python3.8/site-packages), 
 Requirement.parse('pyarrow<4.0.0,>=0.17.0'), {'azureml-dataset-runtime'}).
 https://ml.azure.com/runs/day1-experiment-hello_1623766747_073126f5? 
 wsid=/subscriptions/1679753a-501e-4e46-9bff- 
 6120ed5694cf/resourcegroups/kensazuremlrg/workspaces/kensazuremlws&tid=94fe1041-ba47-4f49- 
 866b- 
 06c297c116cc
 azureuser@kensmlcompute:~/cloudfiles/code/Users/my.name/get-started$


azure-machine-learning
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

romungi-MSFT avatar image
0 Votes"
romungi-MSFT answered romungi-MSFT commented

@Kenny-8557 I think the error indicates that your environment is using pyarrow package which is of version 4.0.0 whereas azureml-dataset-runtime requires the package to be >=0.17.0 but <4.0.0

It would be easier for you to uninstall the package and install a specific version. The list of releases of pyarrow are available here.

Since you are using a notebook create new cells and run these commands.

 !pip uninstall pyarrow

 !pip install -y pyarrow==3.0.0



Please feel free to mark the answer as accepted if it helps. Thanks.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@romungi-MSFT, I met the same situation. Following your instruction.
It is showing the following:

Found existing installation: pyarrow 3.0.0
Uninstalling pyarrow-3.0.0:
Successfully uninstalled pyarrow-3.0.0
Collecting pyarrow==3.0.0
Using cached pyarrow-3.0.0-cp36-cp36m-manylinux2014_x86_64.whl (20.7 MB)
Requirement already satisfied: numpy>=1.16.6 in /anaconda/envs/azureml_py36/lib/python3.6/site-packages (from pyarrow==3.0.0) (1.18.5)
ERROR: azureml-opendatasets 1.28.0 has requirement scipy<=1.4.1,>=1.0.0, but you'll have scipy 1.5.2 which is incompatible.
Installing collected packages: pyarrow
Successfully installed pyarrow-3.0.0

However the pyarrow installation is at (/anaconda/envs/azureml_py36), and the Failed to load entrypoint automl error is at (/anaconda/envs/azureml_py38/), do you have any idea? Thanks

0 Votes 0 ·

@Gf-7196 In your case the requirement with scipy is not met and the installation of pyarrow was with errors. Please try to uninstall scipy and pyarrow, then install the right version.

 !pip uninstall pyarrow
 !pip uninstall scipy 
    
 !pip install -y scipy==1.4.1
 !pip install -y pyarrow==3.0.0
0 Votes 0 ·

Hi,@romungi-MSFT

I have tried your suggestion in .ipynb file:
113903-image1.png


However, When I run the .py file, It still get the error:
113942-image.png

I guess they are in different environment, any idea?

0 Votes 0 ·
image1.png (37.4 KiB)
image.png (33.3 KiB)
Show more comments