You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting an error, probably due to versioning issue between pfrl 0.2.1 and gym 0.23.0:
d:\python-x64\lib\site-packages\pfrl\wrappers\monitor.py line 4: ImportError: cannot import name 'Monitor' from 'gym.wrappers' (D:\python-x64\lib\site-packages\gym\wrappers_init_.py)
python -m pip list
Package Version Location
------------------------------------ --------- -----------------------
gym 0.23.0
pfrl 0.2.1
Thanks for reporting the issue! I reproduced this in my environment. import pfrl fails for gym==0.23.0 due to the removal of Monitor class. This issue must be fixed. A workaround is to use gym<=0.22.0.
Getting an error, probably due to versioning issue between pfrl 0.2.1 and gym 0.23.0:
d:\python-x64\lib\site-packages\pfrl\wrappers\monitor.py line 4: ImportError: cannot import name 'Monitor' from 'gym.wrappers' (D:\python-x64\lib\site-packages\gym\wrappers_init_.py)
Downgrading gym fixes it:
Could you pin the gym version in the requirements.txt?
The text was updated successfully, but these errors were encountered: