From 2c2eb001a60438c24e76e344def5c77a2019bb36 Mon Sep 17 00:00:00 2001 From: Chris Elion Date: Wed, 24 Jun 2020 13:39:42 -0700 Subject: [PATCH 1/2] update FAQ and exception message --- docs/FAQ.md | 7 +++++++ ml-agents-envs/mlagents_envs/rpc_communicator.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/FAQ.md b/docs/FAQ.md index cd1512317a..2b6e54f056 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -89,6 +89,13 @@ There may be a number of possible causes: Unity Environment to figure what error happened. - _Cause_: You have assigned `HTTP_PROXY` and `HTTPS_PROXY` values in your environment variables. _Solution_: Remove these values and try again. +- _Cause_: You are running in a headless environment (e.g. remotely connected + to a server). _Solution_: Pass `--no-graphics` to `mlagents-learn`, or + `no_graphics=True` to `RemoteRegistryEntry.make()` or the `UnityEnvironment` + initializer. If you need graphics for visual observations, you will need to + set up xvfb; see the "Rendering Dependencies" section of the + [colab notebook](https://colab.research.google.com/drive/1nkOztXzU91MHEbuQ1T9GnynYdL_LRsHG#forceEdit=true&sandboxMode=true&scrollTo=htb-p1hSNX7D) + as an example. ## Communication port {} still in use diff --git a/ml-agents-envs/mlagents_envs/rpc_communicator.py b/ml-agents-envs/mlagents_envs/rpc_communicator.py index be409fe324..ae118fe30d 100644 --- a/ml-agents-envs/mlagents_envs/rpc_communicator.py +++ b/ml-agents-envs/mlagents_envs/rpc_communicator.py @@ -96,7 +96,7 @@ def poll_for_timeout(self): 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 Agents are linked to the appropriate Brains\n" + '\t The Agents\' Behavior Parameters > Behavior Type is set to "Default"\n' "\t The environment and the Python interface have compatible versions." ) From b8f3c8a689c64afb498898b52d987506c6ed1ab3 Mon Sep 17 00:00:00 2001 From: Chris Elion Date: Wed, 24 Jun 2020 17:11:06 -0700 Subject: [PATCH 2/2] remove colab link --- docs/FAQ.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/FAQ.md b/docs/FAQ.md index 2b6e54f056..7f453f1468 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -93,9 +93,7 @@ There may be a number of possible causes: to a server). _Solution_: Pass `--no-graphics` to `mlagents-learn`, or `no_graphics=True` to `RemoteRegistryEntry.make()` or the `UnityEnvironment` initializer. If you need graphics for visual observations, you will need to - set up xvfb; see the "Rendering Dependencies" section of the - [colab notebook](https://colab.research.google.com/drive/1nkOztXzU91MHEbuQ1T9GnynYdL_LRsHG#forceEdit=true&sandboxMode=true&scrollTo=htb-p1hSNX7D) - as an example. + set up `xvfb` (or equivalent). ## Communication port {} still in use