-
Notifications
You must be signed in to change notification settings - Fork 486
Description
What happened?
When I called report_metrics
in the SDK built by myself, the first error above occurred.
After I modified grpc.beta.implementations.insecure_channel
to grpc.insecure_channel
, the second error above occurred.
What did you expect to happen?
After PR #2344 was merged to the main branch, beta_create_DBManager_stub
was removed in api_pb2.py
. But we did not make changes in the following part of codes so that the first error occurred
katib/sdk/python/v1beta1/kubeflow/katib/api/katib_client.py
Lines 1288 to 1294 in a6c37e4
with katib_api_pb2.beta_create_DBManager_stub(channel) as client: | |
try: | |
# When metric name is empty, we select all logs from the Katib DB. | |
observation_logs = client.GetObservationLog( | |
katib_api_pb2.GetObservationLogRequest(trial_name=name), | |
timeout=timeout, | |
) |
katib/sdk/python/v1beta1/kubeflow/katib/api/report_metrics.py
Lines 66 to 69 in a6c37e4
with katib_api_pb2.beta_create_DBManager_stub(channel) as client: | |
try: | |
timestamp = datetime.now(timezone.utc).strftime(constants.RFC3339_FORMAT) | |
client.ReportObservationLog( |
Also grpcio package after 1.0.0
has removed beta version. Sometimes we may get errors when we use beta version.
katib/sdk/python/v1beta1/kubeflow/katib/api/report_metrics.py
Lines 57 to 59 in a6c37e4
channel = grpc.beta.implementations.insecure_channel( | |
db_manager_address[0], int(db_manager_address[1]) | |
) |
katib/sdk/python/v1beta1/kubeflow/katib/api/katib_client.py
Lines 1284 to 1286 in a6c37e4
channel = grpc.beta.implementations.insecure_channel( | |
db_manager_address[0], int(db_manager_address[1]) | |
) |
I think we need to may some changes to Python SDK. WDYT👀 @andreyvelich @tenzen-y @johnugeorge
Environment
Kubernetes version:
Client Version: v1.30.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.1
Katib controller version:
Built by myself
Katib Python SDK version:
(Also built by myself)
Name: kubeflow-katib
Version: 0.17.0
Summary: Katib Python SDK for APIVersion v1beta1
Home-page: https://github.com/kubeflow/katib/tree/master/sdk/python/v1beta1
Author: Kubeflow Authors
Author-email: [email protected]
License: Apache License Version 2.0
Location: /home/xxx/.local/lib/python3.10/site-packages/kubeflow_katib-0.17.0-py3.10.egg
Requires: certifi, grpcio, kubernetes, protobuf, setuptools, six, urllib3
Required-by:
Impacted by this bug?
Give it a 👍 We prioritize the issues with most 👍