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

TypeError: learn() got an unexpected keyword argument 'seed' #58

Open
HankerSia opened this issue Nov 25, 2020 · 1 comment
Open

TypeError: learn() got an unexpected keyword argument 'seed' #58

HankerSia opened this issue Nov 25, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@HankerSia
Copy link

for some network reasons, i download this code, and installed related package. When testing, I got a error.

Describe the bug
Traceback (most recent call last):
File "/home/kai/anaconda3/envs/tf_torch/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/kai/anaconda3/envs/tf_torch/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/kai/robotics-rl-srl/rl_baselines/train.py", line 337, in
main()
File "/home/kai/robotics-rl-srl/rl_baselines/train.py", line 333, in main
algo.train(args, callback, env_kwargs=env_kwargs, train_kwargs=hyperparams)
File "/home/kai/robotics-rl-srl/rl_baselines/rl_algorithm/ppo2.py", line 73, in train
super().train(args, callback, env_kwargs, {**param_kwargs, **train_kwargs})
File "/home/kai/robotics-rl-srl/rl_baselines/base_classes.py", line 252, in train
self.model.learn(total_timesteps=args.num_timesteps, seed=args.seed, callback=callback)
TypeError: learn() got an unexpected keyword argument 'seed'

can anyone give me some advice. thank you!

@araffin
Copy link
Owner

araffin commented Nov 25, 2020

Hello,

This is due to a newer version of Stable-Baselines.
The seed argument was moved to the model class constructor.
As I'm no longer maintaining this repo, I would appreciate a PR that solves this issue ;)

@araffin araffin added the bug Something isn't working label Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants