From 2892955119f8eb1f4b9787f1457fb5263062ef7e Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Sun, 1 Oct 2017 14:56:39 -0700 Subject: [PATCH] Pass string into json.loads, not bytes object. (#991) --- python/ray/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/monitor.py b/python/ray/monitor.py index f480ba182..02050e213 100644 --- a/python/ray/monitor.py +++ b/python/ray/monitor.py @@ -461,7 +461,7 @@ class Monitor(object): result = pipe.hget(local_scheduler_id, "gpus_in_use") gpus_in_use = (dict() if result is None else - json.loads(result)) + json.loads(result.decode("ascii"))) driver_id_hex = binary_to_hex(driver_id) if driver_id_hex in gpus_in_use: