Closed LJArendse closed 2 years ago
The gym-md tests do indeed throw the observation env AssertionError:
=========================== short test summary info ============================
FAILED tests/envs/test_gym.py::test_gym_run - AssertionError: The observation...
FAILED tests/envs/test_read_holmgard_gym.py::test_read_holmgard_gym - Asserti...
FAILED tests/envs/test_read_holmgard_gym.py::test_read_constant_holmgard_gym
FAILED tests/envs/test_read_holmgard_gym.py::test_read_constant_holmgard_large_gym
================== 4 failed, 16 passed, 23 warnings in 1.51s ===================
For full test output please see: pipenv_run_test_with_gym_v_0_24_1_output.txt
Overview
The current version of gym-md (
gym-md==0.5.1
) is breaking due changes introduced in the latest gym version 0.24.1 (i.e.gym==0.24.1
). Version 0.24.1 of gym was released approximately 10 days ago . As part of the version 0.24.1 change a new environment (env) checker was introduced (source: https://github.com/openai/gym/releases/tag/0.24.1):Which results in the following error, thrown by the gym/utils/passive_env_checker.py script.
How to reproduce the error?
gym==0.24.1
andgym-md==0.5.1
).env = gym.make('md-test-v0')
LOOP: int = 100 TRY_OUT: int = 100
for _ in range(TRY_OUT): observation = env.reset() rewardsum = 0 for i in range(LOOP): env.render(mode='human') actions = [random.random() for in range(7)] observation, reward, done, info = env.step(actions)
Which would hopefully prevent upstream dependancy version changes from breaking out latest released version.