Azure / Azure/MachineLearningNotebooks
Cannot use `build_local` on 'AzureML-TensorFlow-2.0-GPU' environment
- 主要言語
- Jupyter Notebook
- スター
- 4.4k
- フォーク
- 2.6k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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"
}
}
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。