edbeeching / godot_rl_agents

An Open Source package that allows video game creators, AI researchers and hobbyists the opportunity to learn complex behaviors for their Non Player Characters or agents
MIT License
902 stars 63 forks source link

Error when installing godot-rl and using sb3 example #152

Closed Ivan-267 closed 7 months ago

Ivan-267 commented 11 months ago

As was previously reported on Discord by a user, there's an error if you install Godot-RL using: pip install godot-rl

And then try to use the newest sb3 example file to train:

File "stable_baselines_wrapper.py", line 22, in <listcomp>
    self.envs = [GodotEnv(env_path=env_path, convert_action_space=True, port=port+p, seed=p, **kwargs) for p in range(n_parallel)]
TypeError: godot_rl.core.godot_env.GodotEnv() got multiple values for keyword argument 'seed'

The simplest fix for the issue right now is installing the latest version of gdrl from the github repo, so a possible solution is to update the https://pypi.org/project/godot-rl/ package to the newest version on Github.

Ivan-267 commented 7 months ago

Seems to be working with 0.6.2, closing this issue.