qgallouedec / panda-gym

Set of robotic environments based on PyBullet physics engine and gymnasium.
MIT License
506 stars 109 forks source link

module 'gym' has no attribute 'GoalEnv' #19

Closed Kami-code closed 2 years ago

Kami-code commented 2 years ago

I cannot simply reproduce what you described in installation tutorial. Each time I run, I will get the error in the image.

It seems the latest Gym has removed something about GoalEnv which leads to the error. It seems to be related with the latest update. Can you fix it? Or add some requirement of the gym version. 1

qgallouedec commented 2 years ago

Hi, thank you for reporting. Indeed, GoalEnv has been removed from dev version of Gym. But the current stable version installed with pip is 0.21.0. If you install gym with pip you shouldn't encountered the error. Try

pip install gym==0.21.0

I leave this issue open to remember that the next gym version will require an update of the dependencies.

Kami-code commented 2 years ago

It works. Thanks a lot.