clvrai / spirl

Official implementation of "Accelerating Reinforcement Learning with Learned Skill Priors", Pertsch et al., CoRL 2020
186 stars 36 forks source link

Running error "gym.error.UnregisteredEnv: No registered env with id: kitchen-mixed-v0" #31

Open yuanyaaa opened 1 year ago

yuanyaaa commented 1 year ago

Hello,when I am running the code "gym.make('kitchen-mixed-v0')" throw error "gym.error.UnregisteredEnv: No registered env with id: kitchen-mixed-v0", but I am already install d4rl and can import it correctly. How can I solve it? Thank you for replay!

kpertsch commented 1 year ago

Hi! This is a bit odd -- can you build other d4rl environments after importing d4rl? did you import the d4rl package before calling gym.make(...)? Importing the package is important to register the environments, even if you don't explicitly call the package after. (note that this is likely an issue independent of the SPiRL codebase, since kitchen-mixed-v0 is an environment of the original D4RL codebase (although we did create our own fork of the environment to make some SPiRL-specific modifications to the interface)