From 8ed353ad8e5cd666517796c8461ea1e6c892231d Mon Sep 17 00:00:00 2001 From: Mitchell Stern Date: Sat, 17 Aug 2019 00:33:55 -0700 Subject: [PATCH] Fix json.loads compatibility issue for Python 3.5 (#5466) --- python/ray/dashboard/dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/dashboard/dashboard.py b/python/ray/dashboard/dashboard.py index 83f3b4ed3..2b08f40d5 100644 --- a/python/ray/dashboard/dashboard.py +++ b/python/ray/dashboard/dashboard.py @@ -272,7 +272,7 @@ class NodeStats(threading.Thread): for x in p.listen(): try: - D = json.loads(x["data"]) + D = json.loads(ray.utils.decode(x["data"])) with self._node_stats_lock: self._node_stats[D["hostname"]] = D except Exception: