Azure / Azure/MachineLearningNotebooks

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

Đang mở
#704 11 bình luận 2 reaction 2 người được giao Được @saachigopal nhận Xem trên GitHub
ADO AML Compute Instance awaiting-product-team-response cxp Environments product-question triaged Workspace Management
Ngôn ngữ chính
Jupyter Notebook
Star
4.4k
Fork
2.6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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"
}
}
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.