Closed domist07 closed 2 years ago
As it says in the exception, the observation/action spaces should be gym.spaces
objects (in this case, gym.spaces.Dict
). See Gym docs on creating environments.
Do note that SB3 was not designed for multi-agent environments, and if you get bugs with this, we are unfortunately unable to provide support. For that you should see PettingZoo's docs and forums.
🤖 Custom Gym Environment
 Describe the bug
I try to create a custom multiagent parallel envirnoment. As implemented in the parallel PettingZoo envirnoments I want to use dictionarys for my agents. But stable_baselines3 throws observation space errors. I also try and check the pettingzoo.butterfly.pistonball_v6.parallel_env – it is not working too. Therefore I create a minimal environment to reproduce the error. Did I overlooked something or is it a bug?
 Code example
 System Info
Describe the characteristic of your environment:
 Checklist