Skip to content

TypeError: reset() got an unexpected keyword argument 'seed' #3

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

Open
roanhope opened this issue Aug 27, 2023 · 0 comments
Open

TypeError: reset() got an unexpected keyword argument 'seed' #3

roanhope opened this issue Aug 27, 2023 · 0 comments

Comments

@roanhope
Copy link

When I run all the control algorithms, there is an issue with the seeds
"Traceback (most recent call last):
File "D:\OneDrive - mail.nwpu.edu.cn\HEVpy\DRL-Base-EMS-main\Continuous Algorithms\ppo.py", line 191, in
test_ppo()
File "D:\OneDrive - mail.nwpu.edu.cn\HEVpy\DRL-Base-EMS-main\Continuous Algorithms\ppo.py", line 115, in test_ppo
train_collector = Collector(
File "E:\anaconda3\envs\torch2\lib\site-packages\tianshou\data\collector.py", line 80, in init
self.reset(False)
File "E:\anaconda3\envs\torch2\lib\site-packages\tianshou\data\collector.py", line 131, in reset
self.reset_env(gym_reset_kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\tianshou\data\collector.py", line 147, in reset_env
obs, info = self.env.reset(**gym_reset_kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\tianshou\env\venvs.py", line 277, in reset
self.workers[i].send(None, **kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\tianshou\env\worker\dummy.py", line 36, in send
self.result = self.env.reset(**kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\shimmy\openai_gym_compatibility.py", line 106, in reset
return self.gym_env.reset(seed=seed, options=options)
File "E:\anaconda3\envs\torch2\lib\site-packages\gym\wrappers\time_limit.py", line 68, in reset
return self.env.reset(**kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\gym\wrappers\order_enforcing.py", line 42, in reset
return self.env.reset(**kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\gym\wrappers\env_checker.py", line 45, in reset
return env_reset_passive_checker(self.env, **kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\gym\utils\passive_env_checker.py", line 192, in env_reset_passive_checker
result = env.reset(**kwargs)
TypeError: reset() got an unexpected keyword argument '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