Azure / Azure/MachineLearningNotebooks

Cannot use `build_local` on 'AzureML-TensorFlow-2.0-GPU' environment

Abierto
#704 11 comentarios 2 reacciones 2 asignados Reclamado por @saachigopal Ver en GitHub
ADO AML Compute Instance awaiting-product-team-response cxp Environments product-question triaged Workspace Management
Lenguaje dominante
Jupyter Notebook
Estrellas
4.4k
Forks
2.6k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

In azureml-sdk version 1.0.79, when I try to run the following code:

```python
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)
in
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"
}
}
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.