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

Crewai's version can't be identified. #5330

Open
oshikata0825 opened this issue Dec 18, 2024 · 2 comments
Open

Crewai's version can't be identified. #5330

oshikata0825 opened this issue Dec 18, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@oshikata0825
Copy link

Bug Description

I'm installing the latest langflow on my local environement. I'm using Python3.12.
I got the error when I install the langflow. The error message says this.

ERROR: Cannot install langflow and langflow==1.1.1 because these package versions have conflicting dependencies.

The conflict is caused by:
langflow 1.1.1 depends on crewai~=0.86.0
langflow-base 0.1.1 depends on crewai~=0.80.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip to attempt to solve the dependency conflict

In the above situation, we can't identify which crewai version is required for langflow.

Reproduction

Just install the langflow v1.1.1 on Python3.12.

Expected behavior

The dependency is solved automatically and langchain is installed.

Who can help?

No response

Operating System

Windows11

Langflow Version

1.1.1

Python Version

3.12

Screenshot

image

Flow File

No response

@oshikata0825 oshikata0825 added the bug Something isn't working label Dec 18, 2024
Copy link

dosubot bot commented Dec 18, 2024

Hey @oshikata0825! I'm here to help you with the issue you're facing. Let's work together to solve this!

I found a similar issue that was previously reported: crewai dependency disallows upgrade to langchain~=0.3.x. This issue was closed after a pull request was merged to upgrade langchain and associated packages, including langchain-astradb [1].

For your current issue, the conflict arises because langflow version 1.1.1 requires crewai~=0.86.0, while langflow-base version 0.1.1 requires crewai~=0.80.0. To resolve this, you can try the following:

  1. Loosen Version Constraints: Modify the version constraints in your local environment to allow for a broader range of crewai versions that satisfy both dependencies.

  2. Manual Installation: Manually install a compatible version of crewai that satisfies both langflow and langflow-base before installing langflow.

  3. Use uv Installer: If you encounter issues with pip, try using the uv package installer, which can sometimes handle dependency resolution better:

    uv pip install langflow
  4. Force Reinstall: You can also try forcing a reinstall with:

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

These steps might help in resolving the dependency conflict you're facing.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@erichare
Copy link
Collaborator

@oshikata0825 thanks for the report. This is odd, as we've removed CrewAI from the version dependencies of langflow-base. But this was done post 1.1.1 - its only in the main branch.

Could you try uninstalling langflow-base, then reinstalling langflow as a whole? this may still be a bug that needs to be addressed for backwards compatibility, but there shouldnt be anything specifying a crewai requirement for langflow-base anymore.

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

2 participants