From 8b17d4de3258bbefc6f90237d33f10caef9f6c43 Mon Sep 17 00:00:00 2001 From: litagin02 Date: Fri, 1 Mar 2024 20:10:23 +0900 Subject: [PATCH] Try to fix colab encoding error --- common/subprocess_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/subprocess_utils.py b/common/subprocess_utils.py index 9a0e323..40426f7 100644 --- a/common/subprocess_utils.py +++ b/common/subprocess_utils.py @@ -14,6 +14,7 @@ def run_script_with_log(cmd: list[str], ignore_warning=False) -> tuple[bool, str stdout=SAFE_STDOUT, # type: ignore stderr=subprocess.PIPE, text=True, + encoding="utf-8", ) if result.returncode != 0: logger.error(f"Error: {' '.join(cmd)}\n{result.stderr}")