pfrl icon indicating copy to clipboard operation
pfrl copied to clipboard

"from gym.wrappers import Monitor" has been deprecated

Open ThePeshMod opened this issue 3 years ago • 1 comments

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 avatar Apr 20 '22 13:04 ThePeshMod

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.

ThePeshMod avatar Apr 20 '22 13:04 ThePeshMod

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

muupan avatar Jul 16 '23 15:07 muupan