peterw / Chat-with-Github-Repo

This repository contains two Python scripts that demonstrate how to create a chatbot using Streamlit, OpenAI GPT-3.5-turbo, and Activeloop's Deep Lake.
https://explodinginsights.com/
MIT License
1.14k stars 168 forks source link

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

Open masapasa opened 1 year ago

masapasa commented 1 year ago

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'

mikayelh commented 1 year ago

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

davidbuniat commented 1 year ago

@masapasa can you share the output of pip3 freeze?

jameswburton18 commented 1 year ago

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