IntelLabs / coach

Reinforcement Learning Coach by Intel AI Lab enables easy experimentation with state of the art Reinforcement Learning algorithms
https://intellabs.github.io/coach/
Apache License 2.0
2.32k stars 460 forks source link

Import Error #473

Open ShrutiKaha opened 3 years ago

ShrutiKaha commented 3 years ago

I am using Anaconda on Windows 10. On running the first example code. (base) C:\Users\shrut>coach -p Atari_DQN -lvl breakout The following error occurs:

Traceback (most recent call last): File "c:\programdata\anaconda3\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\programdata\anaconda3\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\shrut\AppData\Roaming\Python\Python38\Scripts\coach.exe__main__.py", line 4, in File "C:\Users\shrut\AppData\Roaming\Python\Python38\site-packages\rl_coach\coach.py", line 39, in from rl_coach.graph_managers.graph_manager import HumanPlayScheduleParameters, GraphManager File "C:\Users\shrut\AppData\Roaming\Python\Python38\site-packages\rl_coach\graph_managers\graph_manager.py", line 35, in from rl_coach.data_stores.data_store_impl import get_data_store as data_store_creator File "C:\Users\shrut\AppData\Roaming\Python\Python38\site-packages\rl_coach\data_stores\data_store_impl.py", line 19, in from rl_coach.data_stores.s3_data_store import S3DataStore, S3DataStoreParameters File "C:\Users\shrut\AppData\Roaming\Python\Python38\site-packages\rl_coach\data_stores\s3_data_store.py", line 20, in from minio.error import ResponseError ImportError: cannot import name 'ResponseError' from 'minio.error' (C:\Users\shrut\AppData\Roaming\Python\Python38\site-packages\minio\error.py)

I think its because there is no 'ResponseError' but 'InvalidResponseError' in the python file. What to do?

RundownRhino commented 3 years ago

I was able to fix this particular problem by downgrading minio to 6.0.0 (haven't checked whether that's the latest version that doesn't have this problem, but coach only requires minio>=4.0.5).

alecacco commented 3 years ago

Can confirm this is an issue, I just had it myself (edit: on ubuntu, not on windows 10). Manually downgraded to minio==4.0.5 in my venv and it worked. Still, not ideal, to say the least

MattPat1981 commented 2 years ago

I manually downgraded to minio==4.0.5 but I was still getting this same error message...it worked after I restarted the kernel in my jupyter notebook. I'm leaving this here in case anyone else does this...turn it off and on again :)