Open
Description
In azureml-sdk version 1.0.79, when I try to run the following code:
from azureml.core import Workspace, Environment
ws = Workspace.from_config()
tf_env = Environment.get(ws, 'AzureML-TensorFlow-2.0-GPU')
tf_env.build_local(ws)
I get this error:
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/environment.py in build_local(self, workspace)
785 try:
--> 786 recipe = environment_client._get_recipe_for_build(name=self.name, version=self.version)
787 except Exception as error:
/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/_restclient/environment_client.py in _get_recipe_for_build(self, name, version)
169 response.text)
--> 170 raise Exception(message)
171
Exception: Error getting recipe specifications. Code: 415
:
During handling of the above exception, another exception occurred:
UserErrorException Traceback (most recent call last)
<ipython-input-6-bcb6c6a77c1e> in <module>
4
5 tf_env = Environment.get(ws, 'AzureML-TensorFlow-2.0-GPU')
----> 6 tf_env.build_local(ws)
/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azureml/core/environment.py in build_local(self, workspace)
788 # Temporary solution to filter attempts to build unregistered environments out
789 if "Code: 404" in repr(error) or "Code: 415" in repr(error):
--> 790 raise UserErrorException("Environment '{}' is not registered".format(self.name))
791 else:
792 raise error
UserErrorException: UserErrorException:
Message: Environment 'AzureML-TensorFlow-2.0-GPU' is not registered
InnerException None
ErrorResponse
{
"error": {
"code": "UserError",
"message": "Environment 'AzureML-TensorFlow-2.0-GPU' is not registered"
}
}