I was trying to use My gym
environment with stable baselines, but when I had to update the stable-baselines3
version to 2.0.0a5 my environment did not work anyore, and after loking at several documentation and forum threads I saw I had to start using gymnasium
instead of gym
to make it work. Now my code does work well in my MacOs and Google Colab. Nevertheless, I have tried to create a virtual environment on a Windows using the same requirement file as in Google Colab (where the code does work), but on Windows I get:
AssertionError: The algorithm only supports (<class 'gym.spaces.box.Box'>, <class 'gym.spaces.discrete.Discrete'>, <class 'gym.spaces.multi_discrete.MultiDiscrete'>, <class 'gym.spaces.multi_binary.MultiBinary'>) as action spaces but Discrete(5) was provided
The versions I have of gym
, gymnasium
and stable-baselines3
in both environments is the same, so I do not understand the reason why this happens. My versions are the fllowing:
gym
--> Version: 0.25.2gymnasium
--> Version: 0.28.1stable-baselines3
--> Version: 2.0.0a5