langflow-ai / langflow

⛓️ Langflow is a visual framework for building multi-agent and RAG applications. It's open-source, Python-powered, fully customizable, model and vector store agnostic.

Home Page:http://www.langflow.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[pre-release alpha bug] a46 with python 3.11.9 won't start

swotai opened this issue · comments

Describe the bug
alpha46 with python 3.11.9 doesn't start up. complaining about missing modules couchbase and langflow.components.vectorstores.base.model not found

Error log (theres too many lines, and when i try to pipe it into txt file i get charmap error)
log.txt

Browser and Version
n/a

To Reproduce
Windows 11, system python 3.11.9
Steps to reproduce the behavior:

  1. python -m venv venv
  2. venv/scripts/activate
  3. python -m pip install langflow --pre -U --force-reinstall
  4. python -m langflow run

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
The error message is very similar to the one in 3.12.2, in this ticket #2086

Hey @swotai! 👋 I'm here to help you with any bugs, questions, or contributions you have while waiting for a human maintainer. Let's squash those bugs together!

To resolve the issue with Langflow alpha46 failing to start on Python 3.11.9 on Windows 11 due to missing modules "couchbase" and "langflow.components.vectorstores.base.model", you need to install the required modules.

You can install the missing modules using the following commands:

pip install couchbase
pip install -e ./src/backend/base

These commands will install the couchbase module and the langflow-base package in development mode, which should include the necessary components for langflow.components.vectorstores.base.model [1].

Additionally, ensure that your Python version is within the supported range specified in the pyproject.toml file, which is >=3.10,<3.12 [2][3].

To continue talking to Dosu, mention @dosu.

Seconding this report -- alpha46 is definitely very broken. I can prove it because even the docker container won't run properly -- and neither will the hugging face spaces. Just try this:

docker run -it --rm -p 7860:7860 langflowai/langflow:1.0-alpha

-- you get a ton of errors on the stdout and the UI will not function at all.

@dosu since i'm installing the package from pypi and not from source, the second command you suggest won't work as there's no src/backend/base folder. This is a issue with either setup.py or some other setup script not installing the right packages.

To address the issues with Langflow alpha46, here are the steps you can take:

  1. Install the couchbase module:

    pip install couchbase
  2. Reinstall Langflow to ensure all dependencies are correctly installed:

    python -m pip install langflow --pre -U --force-reinstall

For Docker users experiencing issues with the non-functional UI and numerous errors, there are no specific recent commits addressing these issues. However, you can try the following workaround:

  1. Run the Docker container with the latest pre-release version:
    docker run -it --rm -p 7860:7860 langflowai/langflow:1.0-alpha

If the issues persist, it might be necessary to check for any updates or patches in the Langflow repository or consider reaching out to the maintainers for further assistance.

For more details on known issues and possible solutions, you can refer to the Langflow documentation on installation issues [1][2].

To continue talking to Dosu, mention @dosu.

Just tried with alpha48. Same errors.

a57 works for python 3.11.8 in MacOS

a57 works for python 3.11.9 in Windows 11. Closing issue now.