Chat-with-Github-Repo icon indicating copy to clipboard operation
Chat-with-Github-Repo copied to clipboard

TypeError: DeepLake.__init__() got an unexpected keyword argument 'read_only'

Open masapasa opened this issue 2 years ago • 3 comments

2023-04-25 18:37:50.156 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "Documents/Chat-with-Github-Repo/chat.py", line 38, in db = DeepLake(dataset_path=active_loop_data_set_path, read_only=True, embedding_function=embeddings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeepLake.init() got an unexpected keyword argument 'read_only' 2023-04-25 18:37:51.843 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "Documents/Chat-with-Github-Repo/chat.py", line 38, in db = DeepLake(dataset_path=active_loop_data_set_path, read_only=True, embedding_function=embeddings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeepLake.init() got an unexpected keyword argument 'read_only' 2023-04-25 18:37:54.475 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "Documents/Chat-with-Github-Repo/chat.py", line 38, in db = DeepLake(dataset_path=active_loop_data_set_path, read_only=True, embedding_function=embeddings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeepLake.init() got an unexpected keyword argument 'read_only' 2023-04-25 18:37:58.851 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "Documents/Chat-with-Github-Repo/chat.py", line 38, in db = DeepLake(dataset_path=active_loop_data_set_path, read_only=True, embedding_function=embeddings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeepLake.init() got an unexpected keyword argument 'read_only' 2023-04-25 18:38:08.388 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "Documents/Chat-with-Github-Repo/chat.py", line 38, in db = DeepLake(dataset_path=active_loop_data_set_path, read_only=True, embedding_function=embeddings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeepLake.init() got an unexpected keyword argument 'read_only' 2023-04-25 18:47:02.915 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "Documents/Chat-with-Github-Repo/chat.py", line 38, in db = DeepLake(dataset_path=active_loop_data_set_path, read_only=True, embedding_function=embeddings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeepLake.init() got an unexpected keyword argument 'read_only' 2023-04-25 18:47:02.918 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "Documents/Chat-with-Github-Repo/chat.py", line 38, in db = DeepLake(dataset_path=active_loop_data_set_path, read_only=True, embedding_function=embeddings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeepLake.init() got an unexpected keyword argument 'read_only' 2023-04-25 18:47:03.473 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "Documents/Chat-with-Github-Repo/chat.py", line 38, in db = DeepLake(dataset_path=active_loop_data_set_path, read_only=True, embedding_function=embeddings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeepLake.init() got an unexpected keyword argument 'read_only' 2023-04-25 18:47:03.820 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "Documents/Chat-with-Github-Repo/chat.py", line 38, in db = DeepLake(dataset_path=active_loop_data_set_path, read_only=True, embedding_function=embeddings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeepLake.init() got an unexpected keyword argument 'read_only' 2023-04-25 18:47:03.959 Uncaught app exception Traceback (most recent call last): File "/opt/homebrew/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script exec(code, module.dict) File "Documents/Chat-with-Github-Repo/chat.py", line 38, in db = DeepLake(dataset_path=active_loop_data_set_path, read_only=True, embedding_function=embeddings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: DeepLake.init() got an unexpected keyword argument 'read_only'

masapasa avatar Apr 25 '23 17:04 masapasa

@masapasa hi! thanks for reporting this. will look into this shortly.

mikayelh avatar Apr 25 '23 19:04 mikayelh

@masapasa can you share the output of pip3 freeze?

davidbuniat avatar Apr 25 '23 21:04 davidbuniat

@masapasa I had the same problem, my issue was that I had not changed the deeplake username to my own

jameswburton18 avatar Apr 26 '23 07:04 jameswburton18