From caf42c5b55fc7fbc154d3ddf138be3f7d531ab1d Mon Sep 17 00:00:00 2001 From: Linlang Date: Thu, 11 Sep 2025 16:19:34 +0800 Subject: [PATCH 1/2] fix: the bug when auto_mount=True --- qlib/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qlib/__init__.py b/qlib/__init__.py index 32d102dca3..d5eb0f3a5c 100644 --- a/qlib/__init__.py +++ b/qlib/__init__.py @@ -140,7 +140,7 @@ def _mount_nfs_uri(provider_uri, mount_path, auto_mount: bool = False): _command_log = [line for line in _command_log if _remote_uri in line] if len(_command_log) > 0: for _c in _command_log: - _temp_mount = _c.decode("utf-8").split(" ")[2] + _temp_mount = _c.split(" ")[2] _temp_mount = _temp_mount[:-1] if _temp_mount.endswith("/") else _temp_mount if _temp_mount == _mount_path: _is_mount = True From dd66b9484c3b0659fc6fbc70b73101f184303504 Mon Sep 17 00:00:00 2001 From: Linlang Date: Thu, 11 Sep 2025 18:20:54 +0800 Subject: [PATCH 2/2] fix: the bug when auto_mount=True --- qlib/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qlib/__init__.py b/qlib/__init__.py index d5eb0f3a5c..687e317ced 100644 --- a/qlib/__init__.py +++ b/qlib/__init__.py @@ -140,7 +140,10 @@ def _mount_nfs_uri(provider_uri, mount_path, auto_mount: bool = False): _command_log = [line for line in _command_log if _remote_uri in line] if len(_command_log) > 0: for _c in _command_log: - _temp_mount = _c.split(" ")[2] + if isinstance(_c, str): + _temp_mount = _c.split(" ")[2] + else: + _temp_mount = _c.decode("utf-8").split(" ")[2] _temp_mount = _temp_mount[:-1] if _temp_mount.endswith("/") else _temp_mount if _temp_mount == _mount_path: _is_mount = True