-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
Describe the bug
UnityTimeOutException: The Unity environment took too long to respond. Make sure that :
The environment does not need user interaction to launch
The Agents are linked to the appropriate Brains
The environment and the Python interface have compatible versions.
To Reproduce
Steps to reproduce the behavior:
- install mlagents-envs-0.17.0
- execute this
from mlagents_envs.registry import default_registry
env = default_registry["Basic"].make()
Console logs / stack traces
UnityTimeOutException Traceback (most recent call last)
in ()
----> 1 env = default_registry["Hallway"].make()
~/anaconda3/envs/python3/lib/python3.6/site-packages/mlagents_envs/registry/remote_registry_entry.py in make(self, **kwargs)
69 args += self._add_args
70 kwargs["additional_args"] = args
---> 71 return UnityEnvironment(file_name=path, **kwargs)
~/anaconda3/envs/python3/lib/python3.6/site-packages/mlagents_envs/environment.py in init(self, file_name, worker_id, base_port, seed, no_graphics, timeout_wait, additional_args, side_channels, log_folder)
209 )
210 try:
--> 211 aca_output = self._send_academy_parameters(rl_init_parameters_in)
212 aca_params = aca_output.rl_initialization_output
213 except UnityTimeOutException:
~/anaconda3/envs/python3/lib/python3.6/site-packages/mlagents_envs/environment.py in _send_academy_parameters(self, init_parameters)
454 inputs = UnityInputProto()
455 inputs.rl_initialization_input.CopyFrom(init_parameters)
--> 456 return self._communicator.initialize(inputs)
457
458 @staticmethod
~/anaconda3/envs/python3/lib/python3.6/site-packages/mlagents_envs/rpc_communicator.py in initialize(self, inputs)
102
103 def initialize(self, inputs: UnityInputProto) -> UnityOutputProto:
--> 104 self.poll_for_timeout()
105 aca_param = self.unity_to_external.parent_conn.recv().unity_output
106 message = UnityMessageProto()
~/anaconda3/envs/python3/lib/python3.6/site-packages/mlagents_envs/rpc_communicator.py in poll_for_timeout(self)
95 if not self.unity_to_external.parent_conn.poll(self.timeout_wait):
96 raise UnityTimeOutException(
---> 97 "The Unity environment took too long to respond. Make sure that :\n"
98 "\t The environment does not need user interaction to launch\n"
99 "\t The Agents are linked to the appropriate Brains\n"
UnityTimeOutException: The Unity environment took too long to respond. Make sure that :
The environment does not need user interaction to launch
The Agents are linked to the appropriate Brains
The environment and the Python interface have compatible versions.
Environment (please complete the following information):
- TensorFlow version: 1.15.2
mlagents-envs-0.17.0