The latest Gym API expects terminated, truncated rather than just done after a env.step(), and seeds the environment with env.reset(seed=seed) rather than env.seed(seed=seed). It is possible to apply a compatibility wrapper by making the env with env = gym.make('CrafterReward-v1', apply_api_compatibility=True) but to work properly the base env must have the env.seed(seed=seed) function, which your Env class does not have (instead, it has the self._seed attribute).
Is there any plan to add the env.seed() function, to make it fully compatible with the latest API? That would also make it compatible with Gymnasium.
The latest Gym API expects
terminated,truncatedrather than justdoneafter aenv.step(), and seeds the environment withenv.reset(seed=seed)rather thanenv.seed(seed=seed). It is possible to apply a compatibility wrapper by making the env withenv = gym.make('CrafterReward-v1', apply_api_compatibility=True)but to work properly the base env must have theenv.seed(seed=seed)function, which yourEnvclass does not have (instead, it has theself._seedattribute).Is there any plan to add the
env.seed()function, to make it fully compatible with the latest API? That would also make it compatible with Gymnasium.