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

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

Open
yuanyaaa opened this issue Dec 4, 2022 · 1 comment

Comments

@yuanyaaa
Copy link

yuanyaaa commented Dec 4, 2022

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
Copy link
Collaborator

kpertsch commented Dec 5, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants