Closed flegare closed 6 months ago
🤖
Thank you for providing a detailed description of the issue you're encountering with langflow. It seems like the problem might be related to the version of sqlite3 installed on your system.
However, to better understand the issue and find a solution, I need a bit more information. Could you please provide the following details:
sqlite3 --version
in your terminal.pip show langflow
in your terminal.Once I have this information, I'll be able to provide more targeted assistance. Thank you for your patience and cooperation.
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
@dosu-bot
sqlite3 --version
3.41.2 2023-03-22 11:56:21 0d1fc92f94cb6b76bffe3ec34d69cffde2924203304e8ffc4155597af0c191da
$ pip show langflow
Name: langflow
Version: 0.6.4
Summary: A Python package with a built-in web application
Home-page: https://github.com/logspace-ai/langflow
Author: Logspace
Author-email: contact@logspace.ai
License: MIT
Location: /usr/local/python/3.10.13/lib/python3.10/site-packages
Requires: alembic, anthropic, bcrypt, beautifulsoup4, boto3, cachetools, certifi, chromadb, cohere, docstring-parser, extract-msg, faiss-cpu, fake-useragent, fastapi, fastavro, google-api-python-client, google-cloud-aiplatform, google-search-results, gunicorn, huggingface-hub, jina, jq, langchain, langchain-experimental, langchain-google-genai, langfuse, loguru, lxml, markupsafe, metal-sdk, metaphor-python, multiprocess, networkx, numexpr, openai, orjson, pandas, passlib, pgvector, pillow, pinecone-client, platformdirs, psycopg, psycopg-binary, psycopg2-binary, pyarrow, pyautogen, pydantic, pydantic-settings, pymongo, pypdf, pysrt, python-jose, python-multipart, pytube, qdrant-client, qianfan, rich, sqlmodel, supabase, tiktoken, typer, types-cachetools, unstructured, uvicorn, weaviate-client, websockets, wikipedia, zep-python
Logs:
@user ➜ /workspaces/langflow_test (main) $ python3 -m langflow run
[2024-02-02 15:36:20 +0000] [15713] [INFO] Starting gunicorn 21.2.0
[2024-02-02 15:36:20 +0000] [15713] [INFO] Listening at: http://127.0.0.1:7860 (15713)
[2024-02-02 15:36:20 +0000] [15713] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2024-02-02 15:36:20 +0000] [15714] [INFO] Booting worker with pid: 15714
[2024-02-02 15:36:20 +0000] [15714] [INFO] Started server process [15714]
[2024-02-02 15:36:20 +0000] [15714] [INFO] Waiting for application startup.
[02/02/24 15:36:20] INFO 2024-02-02 15:36:20 - INFO - service - Alembic already initialized service.py:142
INFO 2024-02-02 15:36:20 - INFO - service - Running DB migrations in /home/codespace/.python/current/lib/python3.10/site-packages/langflow/alembic service.py:144
No new upgrade operations detected.
No new upgrade operations detected.
INFO 2024-02-02 15:36:20 - INFO - utils - No LLM cache set. utils.py:88
[2024-02-02 15:36:20 +0000] [15714] [INFO] Application startup complete.
╭───────────────────────────────────────────────────╮
│ Welcome to ⛓ Langflow │
│ │
│ Access http://127.0.0.1:7860 │
│ Collaborate, and contribute at our GitHub Repo 🚀 │
╰───────────────────────────────────────────────────╯
[02/02/24 15:37:25] INFO 2024-02-02 15:37:25 - INFO - utils - Building custom components from utils.py:325
['/home/codespace/.python/current/lib/python3.10/site-packages/langflow/components']
ERROR 2024-02-02 15:37:25 - ERROR - utils - Error while evaluating custom component code: [91mYour system has an unsupported version of sqlite3. Chroma utils.py:190
requires sqlite3 >= 3.35.0.[0m
[94mPlease visit https://docs.trychroma.com/troubleshooting#sqlite to learn how to upgrade.[0m
[02/02/24 15:44:52] INFO 2024-02-02 15:44:52 - INFO - utils - Building custom components from utils.py:325
['/home/codespace/.python/current/lib/python3.10/site-packages/langflow/components']
ERROR 2024-02-02 15:44:52 - ERROR - utils - Error while evaluating custom component code: [91mYour system has an unsupported version of sqlite3. Chroma utils.py:190
requires sqlite3 >= 3.35.0.[0m
[94mPlease visit https://docs.trychroma.com/troubleshooting#sqlite to learn how to upgrade.[0m
[2024-02-02 16:09:08 +0000] [15713] [INFO] Handling signal: winch
[2024-02-02 16:09:10 +0000] [15713] [INFO] Handling signal: winch
Describe the bug Uppon a fresh installation via pip, langflow doesn't show left menu, errors in logs indicate issue with API.
Browser and Version
To Reproduce Steps to reproduce the behavior:
On a fresh github codespace vm (ubuntu, Python 3.10.13)
pip install langflow
Then launched using:
python -m langflow run
Click new project
Result : Left sidebar is empty
See error
Logs in browser show:
Logs in python show:
Screenshots
Additional context
The fix to force recent binaries of sqllite3 seems to imply code change, can try it but feel would be easier to get insight from the project team prior getting into this fix.