Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error #3354

Closed
leonardocelis112 opened this issue Aug 14, 2024 · 4 comments
Closed

Installation error #3354

leonardocelis112 opened this issue Aug 14, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@leonardocelis112
Copy link

Bug Description

I followed the steps on the getting started.

I installed with both pip and pipx and in every installation i got the follwoing error.

ImportError: cannot import name 'ToolsRenderer' from 'langchain_core.tools' (/Users/leonardocelis/.pyenv/versions/3.11.3/lib/python3.11/site-packages/langchain_core/tools/init.py)

It seems is not able to find the ToolsRenderer class.

Maybe a langchain version issue.

Thanks in advance.

Reproduction

  1. install a fresh environment with the desired python version
  2. install running python -m pip install langflow -U
  3. try to run with python -m langflow run
  4. the error mentioned appears

Expected behavior

Expect the langflow server to run

Who can help?

No response

Operating System

Mac OS

Langflow Version

1.0.15

Python Version

3.11

Screenshot

image

Flow File

No response

@leonardocelis112 leonardocelis112 added the bug Something isn't working label Aug 14, 2024
Copy link

dosubot bot commented Aug 14, 2024

Hello @leonardocelis112! I'm here to assist you with any bugs, questions, or contributions. Let's work together to resolve the issue you're facing.

The error you're encountering is likely due to an incompatibility between Langflow v1.0.15 and the version of LangChain you have installed. Langflow v1.0.15 requires LangChain version 0.6.7.

To resolve this issue, follow these steps:

  1. Verify the currently installed version of LangChain:

    pip show langchain

    This will display the currently installed version of LangChain.

  2. Install the correct version of LangChain:
    If the installed version is not 0.6.7, install the correct version by running:

    pip install langchain==0.6.7
  3. Verify the installation:
    After installation, verify that the correct version is installed by running:

    pip show langchain

    Ensure that the version displayed is 0.6.7.

By ensuring that you have the correct version of LangChain installed, you should be able to resolve the ImportError for ToolsRenderer and run Langflow successfully [1][2].

To continue talking to Dosu, mention @dosu.

@evbz22
Copy link

evbz22 commented Aug 15, 2024

Still errors out even after trying

pip install langchain==0.6.7
ERROR: Could not find a version that satisfies the requirement langchain==0.6.7


ERROR: No matching distribution found for langchain==0.6.7

@leonardocelis112
Copy link
Author

I'm having the same error that @evbz22 has.

@evbz22
Copy link

evbz22 commented Aug 15, 2024

Found a resolution to this issue.
Langchain seems to have released langchain: release 0.2.14 #25416 to address this issue.
langchain-ai/langchain#25416

Please check langchain-ai/langchain#25413
It fixed my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants