pfnet / pfrl

PFRL: a PyTorch-based deep reinforcement learning library
MIT License
1.2k stars 157 forks source link

"from gym.wrappers import Monitor" has been deprecated #172

Closed ThePeshMod closed 1 year ago

ThePeshMod commented 2 years ago

The Monitor from gym.wrappers has been deprecated. At the moment, you can;t even "import pflr", as immediately you are greeted with this:

ImportError: cannot import name 'Monitor' from 'gym.wrappers'

ThePeshMod commented 2 years ago

OK, it looks like it was deprecated in version gym 0.23.0 (along with gym.wrappers.monitoring.stats_recorder), so if you want to use PFRL, you should install gym 0.22.0, at least until this library is updated.

muupan commented 1 year ago

Thanks for raising the issue. pfrl==0.4.0 has been released, which should solve it.