Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed on " HopperEnv' object has no attribute 'seed' " #37

Open
HughesField opened this issue Mar 23, 2024 · 0 comments
Open

Failed on " HopperEnv' object has no attribute 'seed' " #37

HughesField opened this issue Mar 23, 2024 · 0 comments

Comments

@HughesField
Copy link

HughesField commented Mar 23, 2024

Traceback (most recent call last):
File "/home/zjt/exp/PyTorch-RL/examples/ppo_gym.py", line 70, in
env.seed(args.seed)
File "/home/zjt/anaconda3/envs/mujoco/lib/python3.9/site-packages/gym/core.py", line 241, in getattr
return getattr(self.env, name)
File "/home/zjt/anaconda3/envs/mujoco/lib/python3.9/site-packages/gym/core.py", line 241, in getattr
return getattr(self.env, name)
File "/home/zjt/anaconda3/envs/mujoco/lib/python3.9/site-packages/gym/core.py", line 241, in getattr
return getattr(self.env, name)
AttributeError: 'HopperEnv' object has no attribute 'seed'

When "python examples/ppo_gym.py --env-name Hopper-v2", the program encountered an error with env.seed(args.seed), and even after commenting out this line, it ran into another error related to 'seed': AttributeError: 'numpy.random._generator.Generator' object has no attribute 'seed'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant