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

NameError: name 'PointMassEnv' is not defined #1

Open
dyabel opened this issue Jun 20, 2022 · 1 comment
Open

NameError: name 'PointMassEnv' is not defined #1

dyabel opened this issue Jun 20, 2022 · 1 comment

Comments

@dyabel
Copy link

dyabel commented Jun 20, 2022

image
Hi, I have followed your installation instruction and run the example task but I got this issue, can you help me figure it out? Thx.

@wyqsss
Copy link

wyqsss commented Jul 7, 2022

image Hi, I have followed your installation instruction and run the example task but I got this issue, can you help me figure it out? Thx.

this is because "cannot re-register id:".you shoule remove them before register in the three file.
envs/d4rl/d4rl_content/pointmaze/init.py
envs/d4rl/d4rl_content/locomotion/init.py
envs/d4rl/d4rl_content/gym_bullet/init.py

import gym
env_dict = gym.envs.registration.registry.env_specs.copy()
for env in env_dict:
    if 'antmaze' in env:
        print('Remove {} from registry'.format(env))
        del gym.envs.registration.registry.env_specs[env]

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