From 306e9c24985a17e801e34b9fcbbd7ee1a714720b Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Wed, 28 Apr 2021 16:38:15 +0800 Subject: [PATCH] fix: cprint of remote output needs decode() --- pyqtgraph/multiprocess/processes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyqtgraph/multiprocess/processes.py b/pyqtgraph/multiprocess/processes.py index 24fdebf2..33ac85c5 100644 --- a/pyqtgraph/multiprocess/processes.py +++ b/pyqtgraph/multiprocess/processes.py @@ -489,12 +489,12 @@ class FileForwarder(threading.Thread): while not self.finish.is_set(): line = self.input.readline() with self.lock: - cprint.cout(self.color, line, -1) + cprint.cout(self.color, line.decode('utf8'), -1) elif self.output == 'stderr' and self.color is not False: while not self.finish.is_set(): line = self.input.readline() with self.lock: - cprint.cerr(self.color, line, -1) + cprint.cerr(self.color, line.decode('utf8'), -1) else: if isinstance(self.output, str): self.output = getattr(sys, self.output)