Search code examples
pythondeploymentazure-machine-learning-service

Azure ML deploy locally: tarfile.ReadError: file could not be opened successfully


I am trying to deploy(local) using this line:

local_service = Model.deploy(ws, "test", [model], inference_config, deployment_config)

Then I get this output in the terminal:

tarfile.ReadError: file could not be opened successfully

Screenshot of the output


Solution

  • There was a bug with the retry logic when files were being uploaded. That bug has since been fixed, so updating your SDK should fix the issue.

    Similar post: Registering and downloading a fastText .bin model fails with Azure Machine Learning Service