langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Reduce the installation footprint using optional dependencies

Open robertmartin8 opened this issue 1 year ago • 1 comments

Feature Request

Langflow should support some kind of "optional" dependencies rather than importing everything.

e.g. pip install langflow[all], or pip install langflow[base], or something like that.

Motivation

Langflow has an enormous import footprint, because it imports the required libraries for all connectors.

Most of these connectors will not be used, so users should be able to avoid importing them.

This has caused issues for several people, in #4913, #4964.

Your Contribution

No response

robertmartin8 avatar Dec 13 '24 13:12 robertmartin8

Hey @robertmartin8

You can install langflow-base which contains only the necessary dependencies to run langflow. It does break almost all Components and requires you to install the ones you use, though.

ogabrielluiz avatar Dec 13 '24 13:12 ogabrielluiz

Hi, @robertmartin8. I'm Dosu, and I'm helping the langflow team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • You suggested implementing optional dependencies to reduce Langflow's installation footprint.
  • The current setup imports all libraries for connectors, causing issues as noted in previous reports (#4913, #4964).
  • @ogabrielluiz mentioned that installing langflow-base provides only essential dependencies, but this breaks most components and requires additional installations.

Next Steps

  • Could you confirm if this issue is still relevant to the latest version of the langflow repository? If so, please comment to keep the discussion open.
  • If there is no further activity, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Mar 14 '25 16:03 dosubot[bot]