Closed tchelovilar closed 2 years ago
/assign
Could you share more of your code and what log stream you were getting?
Hi @roycaihw ,
Thank you for your time.
This is the snippet of the code that I use to follow the log:
w = watch.Watch()
start_time = time()
try:
for line in w.stream(
func=k8s.read_namespaced_pod_log,
name=POD_NAME,
namespace=NAMESPACE,
follow=True,
):
print(line)
if (time() - start_time) > int(FOLLOW_LOG_TIME):
w.stop()
except UnicodeDecodeError as error:
print(error)
Follow a copy of the log, the problem happens at line 17: https://github.com/tchelovilar/test-actions/blob/master/log2#L17
And the last traceback:
0%| | 0/200286 [00:00<?, ?it/s]
0%| | 0/200286 [00:00<?, ?it/s]
Warning : `load_model` does not return WordVectorModel or SupervisedModel any more, but a `FastText` object which is very similar.
0%| | 0/200286 [00:00<?, ?it/s]
Warning : `load_model` does not return WordVectorModel or SupervisedModel any more, but a `FastText` object which is very similar.
Warning : `load_model` does not return WordVectorModel or SupervisedModel any more, but a `FastText` object which is very similar.
0%| | 0/200286 [00:00<?, ?it/s]
0%| | 0/200286 [00:00<?, ?it/s]
0%| | 0/200286 [00:00<?, ?it/s]
Warning : `load_model` does not return WordVectorModel or SupervisedModel any more, but a `FastText` object which is very similar.
'utf-8' codec can't decode bytes in position 32766-32767: unexpected end of data
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close
@k8s-triage-robot: Closing this issue.
Hi, I got a decode error using the function w.stream to get the log stream:
https://github.com/kubernetes-client/python-base/blob/0d4f822f4f654361764a6f8dcf7ca9bf5bbce3f9/watch/watch.py#L58
Follow the traceback:
Thank you in advance :)