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

train_push seems to be broken after merging gymnasium branch #38

Closed
mfouadthabet opened this issue Oct 23, 2022 · 3 comments
Closed

train_push seems to be broken after merging gymnasium branch #38

mfouadthabet opened this issue Oct 23, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@mfouadthabet
Copy link

Describe the bug

The following error occurs on trying to run train_push

assert not hasattr(obs_space, "spaces"), f"Unsupported structured space '{type(obs_space)}'"
AssertionError: Unsupported structured space '<class 'gymnasium.spaces.dict.Dict'>'

To Reproduce

Provide a minimal code :

import gymnasium as gym
from stable_baselines3 import DDPG, HerReplayBuffer

import panda_gym

env = gym.make("PandaPush-v3")

model = DDPG(policy="MultiInputPolicy", env=env, replay_buffer_class=HerReplayBuffer, verbose=1)
...

System

  • OS: ubuntu 20.04
  • Python version (python --version): 3.8
  • Package version (pip list | grep panda-gym): current master
@mfouadthabet mfouadthabet added the bug Something isn't working label Oct 23, 2022
@qgallouedec
Copy link
Owner

Stable-baselines3 is not yet compatible with gymnasium v0.26 (see the related PR: DLR-RM/stable-baselines3#780). Therefore, you can't use panda-gym v3 with SB3 for the moment. You have to upgrade to panda-gym version 2.0.0.

pip install panda-gym==2.0.0

and use PandaPush-v2.

@qgallouedec
Copy link
Owner

The following error occurs on trying to run train_push

I left this file in the repo to anticipate, but we will have to wait a bit for it to be functional.

@qgallouedec
Copy link
Owner

Disclaimer added: 09ecfb6

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