From be0d319b777a8a9c380764fe57964b2e3c72fac9 Mon Sep 17 00:00:00 2001 From: DYK <79500842+lazybuttrying@users.noreply.github.com> Date: Wed, 15 Mar 2023 00:18:26 +0900 Subject: [PATCH] Update vector_envs_tutorial.py (#347) Co-authored-by: Mark Towers --- .../gymnasium_basics/vector_envs_tutorial.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/tutorials/gymnasium_basics/vector_envs_tutorial.py b/docs/tutorials/gymnasium_basics/vector_envs_tutorial.py index cc15799f6..90fd93715 100644 --- a/docs/tutorials/gymnasium_basics/vector_envs_tutorial.py +++ b/docs/tutorials/gymnasium_basics/vector_envs_tutorial.py @@ -3,6 +3,19 @@ Training A2C with Vector Envs and Domain Randomization ====================================================== """ +# %% +# Notice +# ------ +# +# If you encounter an RuntimeError like the following comment raised on multiprocessing/spawn.py, wrap up the code from ``gym.vector.make=`` or ``gym.vector.AsyncVectorEnv`` to the end of the code by ``if__name__ == '__main__'``. +# +# ``An attempt has been made to start a new process before the current process has finished its bootstrapping phase.`` +# + +# %% +# +# ------------------------------ +# # %%