Closed dodeeric closed 4 weeks ago
streamlit error only: Error: Chroma is running in http-only client mode, and can only be run with 'chromadb.api.fastapi.FastAPI' as the chroma_api_impl. see https://docs.trychroma.com/usage-guide?lang=py#using-the-python-http-only-client for more information.
"Files and DB Info" does not display the file tree:
Number of JSON files: 343
Number of web pages: 1985
Number of PDF files: 1
Number of PDF pages: 1
Number of web and pdf pages: 1986
Error: Is the DB available?
Error: [Errno 2] No such file or directory: './chromadb/chroma.sqlite3'
in streamlit, usually, after reboot, an empty chroma.sqlite3 file is created (db empty) --> no more???
What if I delete the chromadb dir in codespace? Will the build of the chroma db still be ok?
Do also a pip install --upgrade -r requirements.txt
===> All OK
If I switch back to backend_v2, all ok again?
===> Still the same error in Streamlit
langchain-0.1.20 to langchain-0.2.1 !!!
pip install --upgrade --user -r requirements.txt
Using cached langchain-0.2.1-py3-none-any.whl (973 kB) Using cached langchain_community-0.2.1-py3-none-any.whl (2.1 MB) Using cached langchain_openai-0.1.8-py3-none-any.whl (38 kB) Using cached langchain_anthropic-0.1.15-py3-none-any.whl (16 kB) Using cached langchain_google_vertexai-1.0.4-py3-none-any.whl (57 kB) Using cached streamlit-1.35.0-py2.py3-none-any.whl (8.6 MB) Using cached langchain_text_splitters-0.2.0-py3-none-any.whl (23 kB) Installing collected packages: streamlit, langchain-text-splitters, langchain-openai, langchain-anthropic, langchain, langchain-google-vertexai, langchain-community Attempting uninstall: streamlit Found existing installation: streamlit 1.34.0 Uninstalling streamlit-1.34.0: Successfully uninstalled streamlit-1.34.0 Attempting uninstall: langchain-text-splitters Found existing installation: langchain-text-splitters 0.0.2 Uninstalling langchain-text-splitters-0.0.2: Successfully uninstalled langchain-text-splitters-0.0.2 Attempting uninstall: langchain-openai Found existing installation: langchain-openai 0.1.7 Uninstalling langchain-openai-0.1.7: Successfully uninstalled langchain-openai-0.1.7 Attempting uninstall: langchain-anthropic Found existing installation: langchain-anthropic 0.1.13 Uninstalling langchain-anthropic-0.1.13: Successfully uninstalled langchain-anthropic-0.1.13 Attempting uninstall: langchain Found existing installation: langchain 0.1.20 Uninstalling langchain-0.1.20: Successfully uninstalled langchain-0.1.20 <==================================== Attempting uninstall: langchain-google-vertexai Found existing installation: langchain-google-vertexai 1.0.3 Uninstalling langchain-google-vertexai-1.0.3: Successfully uninstalled langchain-google-vertexai-1.0.3 Attempting uninstall: langchain-community Found existing installation: langchain-community 0.0.38 Uninstalling langchain-community-0.0.38: Successfully uninstalled langchain-community-0.0.38 Successfully installed langchain-0.2.1 langchain-anthropic-0.1.15 langchain-community-0.2.1 langchain-google-vertexai-1.0.4 langchain-openai-0.1.8 langchain-text-splitters-0.2.0 streamlit-1.35.0
What if I fix the version of langchain to the old version? langchain 0.2.1 --> 0.1.20 langchain-community 0.2.1 --> 0.0.38
===> Codelab: ok ===> Streamlit: still nok
streamlit: python 3.11? no more 3.10.13 as on github codespace?
===> reinstalled the app in streamlit with python 3.10: still the same error
still the error if:
quid remove chromadb-client from requirements.txt (not needed)? il faut réinstaller l'app dans streamlit alors (on sais pas faire pip uninstall)
==> it seems it solved the problem: after delete app, reinstall app, there is again an empty sqlite db file.
*** chroma not as a server ===> that's the case in codespace and in streamlit ===> ok