From b90de2c7dd875f96a10abc7054690ab2d3f489b7 Mon Sep 17 00:00:00 2001 From: vincentpierre Date: Fri, 22 Feb 2019 13:31:31 -0800 Subject: [PATCH] Update Timeout error messages --- ml-agents/mlagents/envs/rpc_communicator.py | 3 ++- ml-agents/mlagents/envs/socket_communicator.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ml-agents/mlagents/envs/rpc_communicator.py b/ml-agents/mlagents/envs/rpc_communicator.py index a9e85ef382..eb9f128c65 100644 --- a/ml-agents/mlagents/envs/rpc_communicator.py +++ b/ml-agents/mlagents/envs/rpc_communicator.py @@ -78,7 +78,8 @@ def initialize(self, inputs: UnityInput) -> UnityOutput: raise UnityTimeOutException( "The Unity environment took too long to respond. Make sure that :\n" "\t The environment does not need user interaction to launch\n" - "\t The Academy and the External Brain(s) are attached to objects in the Scene\n" + "\t The Academy's Broadcast Hub is configured correctly\n" + "\t The Agents are linked to the appropriate Brains\n" "\t The environment and the Python interface have compatible versions.") aca_param = self.unity_to_external.parent_conn.recv().unity_output message = UnityMessage() diff --git a/ml-agents/mlagents/envs/socket_communicator.py b/ml-agents/mlagents/envs/socket_communicator.py index b2be530d71..913b74b615 100644 --- a/ml-agents/mlagents/envs/socket_communicator.py +++ b/ml-agents/mlagents/envs/socket_communicator.py @@ -45,7 +45,8 @@ def initialize(self, inputs: UnityInput) -> UnityOutput: raise UnityTimeOutException( "The Unity environment took too long to respond. Make sure that :\n" "\t The environment does not need user interaction to launch\n" - "\t The Academy and the External Brain(s) are attached to objects in the Scene\n" + "\t The Academy's Broadcast Hub is configured correctly\n" + "\t The Agents are linked to the appropriate Brains\n" "\t The environment and the Python interface have compatible versions.") message = UnityMessage() message.header.status = 200