Recent changes to the gym library introduced by version 0.26.0 cause various issues. The following have been observed:
GymNE.visualize(...) no longer renders. This can be observed in examples/notebooks/Gym_Experiments_with_PGPE_and_CoSyNE.ipynb. Similarly the gym changes prevent any rendering from examples/scripts/rl_enjoy.py. In neither case is an exception thrown.
gym.make(...) can throw exceptions breaking the MPC example. This can be observed in examples/notebooks/Model_Predictive_Control_With_CEM/reacher_mpc.ipynb:
TypeError: __init__() got an unexpected keyword argument 'new_step_api'
Recent changes to the
gym
library introduced by version 0.26.0 cause various issues. The following have been observed:GymNE.visualize(...)
no longer renders. This can be observed in examples/notebooks/Gym_Experiments_with_PGPE_and_CoSyNE.ipynb. Similarly the gym changes prevent any rendering from examples/scripts/rl_enjoy.py. In neither case is an exception thrown.gym.make(...)
can throw exceptions breaking the MPC example. This can be observed in examples/notebooks/Model_Predictive_Control_With_CEM/reacher_mpc.ipynb:To reproduce these issues:
git clone https://github.com/nnaisense/evotorch.git
cd evotorch && conda env create -f env.yml
conda activate evotorch && pip install gym
<--- this should install 0.26.1jupyter lab
And then run the example notebooks listed above.Possibly, there are other compatibility issues. We can continue to document them here as we find them.