-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Cannot import pybullet_envs #4368
Comments
This resolution is not work for me, do you have any other method? |
You can patch gym as done in the RL Zoo: DLR-RM/rl-baselines3-zoo#256 The file: https://github.com/DLR-RM/rl-baselines3-zoo/blob/feat/gym-0.24/rl_zoo3/gym_patches.py (soon you will be able to apply the patches by simply doing |
when i change gym0.26.0 -> 0.18.0,it works |
This error is caused by this update to the gym environment (since 0.26), the
|
This requires a fix in Bullet? Is there a run-time version check of gym, so we can implement both old and new method? |
This PR should already fix it: #4332 (it should work with both gym 0.21 and 0.26) The check in gym is here: https://github.com/openai/gym/blob/master/gym/envs/registration.py#L497-L498 |
Fyi, I pushed and released on pypi a subset of pybullet envs compatible with gymnasium: https://github.com/araffin/pybullet_envs_gymnasium |
Before starting I want to mention that I have install the OpenAI gym version
0.26.2
and pybullet version3.2.5
. When I try to importpybullet_envs
package, I get the following error:Does anyone knows how to fix this issue? I suspect the reason for this is the following:
The error is raised at pybullet_envs/init.py which does the following:
I changed it to this and the error was removed
If you want you can have a look
Thanks
The text was updated successfully, but these errors were encountered: