Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Import Error #473

Open
ShrutiKaha opened this issue Mar 3, 2021 · 3 comments
Open

Import Error #473

ShrutiKaha opened this issue Mar 3, 2021 · 3 comments

Comments

@ShrutiKaha
Copy link

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
Copy link

RundownRhino commented Mar 11, 2021

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
Copy link

alecacco commented May 21, 2021

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
Copy link

MattPat1981 commented Sep 29, 2021

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 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants