Pendulum-v0 is deprecated at Gym 0.21.0 and gym.make raises
gym.error.DeprecatedEnv.
Since TensorFlow 0.8.0 (for TensorFlow 2.0/2.1) is incompatible with
Gym 0.21.0, we cannot increase dependent Gym version.
This commit includes following workaround.
Add a wrapper function tf2rl.envs.utils.make:
Find latest version from registered environments when
DeprecatedEnv is raised.
gym.make does not check version number when rasing
gym.error.DeprecatedEnv.
If we pass a future version like "Pendulum-v1000", gym.make still
raises gym.error.DeprecatedEnv, so that incremental version check
can fall into infinit loop.
This PR is for issue #154.
Pendulum-v0 is deprecated at Gym 0.21.0 and
gym.make
raisesgym.error.DeprecatedEnv
.Since TensorFlow 0.8.0 (for TensorFlow 2.0/2.1) is incompatible with Gym 0.21.0, we cannot increase dependent Gym version.
This commit includes following workaround.
Add a wrapper function tf2rl.envs.utils.make: Find latest version from registered environments when
DeprecatedEnv
is raised.gym.make
does not check version number when rasinggym.error.DeprecatedEnv
.If we pass a future version like "Pendulum-v1000",
gym.make
still raisesgym.error.DeprecatedEnv
, so that incremental version check can fall into infinit loop.