spirl icon indicating copy to clipboard operation
spirl copied to clipboard

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

Open yuanyaaa opened this issue 1 year ago • 1 comments

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!

yuanyaaa avatar Dec 04 '22 11:12 yuanyaaa

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)

kpertsch avatar Dec 05 '22 00:12 kpertsch