langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
34.37k stars 4.14k forks source link

Empty left menu - Error #1388

Closed flegare closed 6 months ago

flegare commented 9 months ago

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:

  1. On a fresh github codespace vm (ubuntu, Python 3.10.13) pip install langflow

  2. Then launched using: python -m langflow run

  3. Click new project

  4. Result : Left sidebar is empty

  5. See error

Logs in browser show:

Refused to execute script from <redacted>/node_modules/ace-builds/src-min-noconflict/ace.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Failed to load resource: the server responded with a status of 403 ()
index-9d80cdad.js:122 Error: AxiosError
index-9d80cdad.js:177 AxiosError
/api/v1/all:1 

Failed to load resource: the server responded with a status of 500 ()
index-9d80cdad.js:177 An error has occurred while fetching types.
yt @ index-9d80cdad.js:177
index-9d80cdad.js:177 AxiosError

Logs in python show:

[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   

Screenshots

image

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.

dosubot[bot] commented 9 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:

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.

flegare commented 9 months ago

@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