openai / gym

A toolkit for developing and comparing reinforcement learning algorithms.
https://www.gymlibrary.dev
Other
34.2k stars 8.58k forks source link

[Bug Report] SyncVectorEnv has an unremoved but deprecated method seed() #3234

Closed zhengzl18 closed 12 months ago

zhengzl18 commented 12 months ago

The SyncVectorEnv has a method seed(), in which super().seed(seed=seed) is called. However, the method seed() has already been deprecated in Env.

Code example

import gymnasium as gym

sync_env = SyncVectorEnv([lambda: gym.make("CartPole-v1") for _ in range(3)])
sync_env.seed(0)

This yields:

AttributeError: 'super' object has no attribute 'seed'

zhengzl18 commented 12 months ago

I mistakenly report a bug of gymnasium in this repo, so I closed this issue.

zzr2311559 commented 10 months ago

I have also encountered AttributeError: 'super' object has no attribute 'seed'. Did you find anything that could lead to this error? Thank you!

pseudo-rnd-thoughts commented 10 months ago

seed has been moved to reset(seed=seed)