FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpqie8i33i/MLmodel' - Tutorial: Score machine learning models with PREDICT in serverless Apache Spark pool

AdamNevin-8126 52 Reputation points


I am following the tutorial score machine learning models using PREDICT.

I receive the following error: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpqie8i33i/MLmodel'

In a previous post it was advised to ensure to upload the mlflow folder to AML, not the parent folder to AML.

Could I get a bit more clarity on these steps as I was unable to solve my issue.

Thanks in advance,


Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,561 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,961 Reputation points Microsoft Employee

    @AdamNevin-8126 After checking the referenced thread I believe @PRADEEPCHEEKATLA-MSFT is referring to uploading your model folder to Azure ML workspace and register it as a model.

    If you are using AML Model as seen in the model_uri parameter above I think you need to navigate to and register the model from the models tab. Then use the model name and appropriate version for the AML_MODEL_URI env variable.


    AML_MODEL_URI = "aml://test1:1"  


    If all the steps to register and authenticate the AML workspace mentioned in the earlier part of the document are run successfully then I think this should work.