I have docker locally and have verified that it works perfectly well. However, when I submit the same run.py to the gitlab, I got the following error which says unity environment doesn’t respond.
I add some additional parameters compared to the original file:
env = ObstacleTowerEnv(args.environment_filename, docker_training=args.docker_training, retro=False, realtime_mode=False)
By the way, I use gpu (gpu:true is set in the aicrowd.json), don’t know if that’s the problem.
Here’s the error log:
2019-03-07T11:32:22.733086464Z INFO:mlagents_envs:Start training by pressing the Play button in the Unity Editor.
2019-03-07T11:32:52.766988656Z Traceback (most recent call last):
2019-03-07T11:32:52.7670384Z File “run.py”, line 72, in
2019-03-07T11:32:52.767043221Z env = ObstacleTowerEnv(args.environment_filename, docker_training=args.docker_training, retro=False, realtime_mode=False)
2019-03-07T11:32:52.767068055Z File “/srv/conda/lib/python3.6/site-packages/obstacle_tower_env.py”, line 45, in init
2019-03-07T11:32:52.767073489Z File “/srv/conda/lib/python3.6/site-packages/mlagents_envs/environment.py”, line 69, in init
2019-03-07T11:32:52.767076089Z aca_params = self.send_academy_parameters(rl_init_parameters_in)
2019-03-07T11:32:52.767099058Z File “/srv/conda/lib/python3.6/site-packages/mlagents_envs/environment.py”, line 491, in send_academy_parameters
2019-03-07T11:32:52.76710192Z return self.communicator.initialize(inputs).rl_initialization_output
2019-03-07T11:32:52.767104579Z File “/srv/conda/lib/python3.6/site-packages/mlagents_envs/rpc_communicator.py”, line 80, in initialize
2019-03-07T11:32:52.767107093Z “The Unity environment took too long to respond. Make sure that :\n”
2019-03-07T11:32:52.767109735Z mlagents_envs.exception.UnityTimeOutException: The Unity environment took too long to respond. Make sure that :
2019-03-07T11:32:52.767141981Z The environment does not need user interaction to launch
2019-03-07T11:32:52.76714544Z The Academy and the External Brain(s) are attached to objects in the Scene
2019-03-07T11:32:52.76714784Z The environment and the Python interface have compatible versions.