langflow icon indicating copy to clipboard operation
langflow copied to clipboard

pip install langflow installs v0.0l78 instead of >==0.5.0 and has very few modules.

Open jeffhaskin opened this issue 1 year ago • 4 comments

Describe the bug pip install langflow installs v0.0.78 instead of >==0.5.0 and has very few modules.

Browser and Version

  • Safari
  • Version [e.g. 22]

To Reproduce Steps to reproduce the behavior:

  1. Open terminal.
  2. pip install langflow
  3. Open http://127.0.0.1:7860/ in a browser.
  4. Note the version on the lower left.

Screenshots Screenshot 2024-01-22 at 1 42 38 PM

Additional context When I enter langflow --help in the terminal, it has only a few options and is missing many of the options that are on the github page.

jeffhaskin avatar Jan 22 '24 20:01 jeffhaskin

🤖

It seems like you're encountering an issue where pip install langflow is installing an older version of the package (v0.0.78) instead of a version >==0.5.0. This could be due to pip's package index cache. Pip uses this cache to speed up package search and resolution. If the cache is not updated, pip might not be aware of the newer versions of the package. You can force pip to update the cache by using the --no-cache-dir option:

pip install --no-cache-dir langflow

Regarding the discrepancy between the modules installed and the options listed on the GitHub page, it's likely because the pip install langflow command only installs the main package and its dependencies, but not the optional dependencies. In the pyproject.toml file, you can see that there are optional dependencies defined under [tool.poetry.extras]. These optional dependencies are not installed by default. They can be installed by specifying the extras in the install command:

pip install langflow[deploy,local]

This command will install the langflow package along with the deploy and local extras. The deploy extra includes langchain-serve, celery, redis, and flower, and the local extra includes llama-cpp-python, sentence-transformers, and ctransformers.

You can find more details in the pyproject.toml file.

As for the latest version of langflow, according to the provided pyproject.toml file, it is "0.6.5a9". However, please note that this is the version in the provided context and may not reflect the latest version available on the Python Package Index (PyPI) if the package has been updated since this file was created.

I hope this helps! If you have any other questions or need further clarification, feel free to ask.

Sources


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.

dosubot[bot] avatar Jan 22 '24 20:01 dosubot[bot]

I tried pip install --no-cache-dir langflow and it still installed v0.0.78

jeffhaskin avatar Jan 24 '24 00:01 jeffhaskin

@jeffhaskin I tried installing langflow[local] just now and it started at version 0.2.7 and kept going back even further looking for a [local] version and never found it. After examining what the python requirements were for older versions of langflow versus current versions at pypi.org it seems earlier versions had requirements that included python<3.12, while current langflow versions were python<3.11. I was trying 3.11, so after installing 3.10 and using the python.exe -m venv for 3.10 it finally installed the correct version of langflow. Not sure if that will resolve your issue, but thought I'd share.

sgjohnson1981 avatar Feb 04 '24 20:02 sgjohnson1981

@jeffhaskin I tried installing langflow[local] just now and it started at version 0.2.7 and kept going back even further looking for a [local] version and never found it. After examining what the python requirements were for older versions of langflow versus current versions at pypi.org it seems earlier versions had requirements that included python<3.12, while current langflow versions were python<3.11. I was trying 3.11, so after installing 3.10 and using the python.exe -m venv for 3.10 it finally installed the correct version of langflow. Not sure if that will resolve your issue, but thought I'd share.

@sgjohnson1981 I'll try that. I think I was able to get that to happen with an earlier python version as well (3.9.13 or something like that), but then it didn't have any components in it. I'll try 3.10.

jeffhaskin avatar Feb 11 '24 18:02 jeffhaskin