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?