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

[BUG]: Langchain dependency conflict #1001

Open
danhorton7 opened this issue Dec 6, 2024 · 3 comments
Open

[BUG]: Langchain dependency conflict #1001

danhorton7 opened this issue Dec 6, 2024 · 3 comments
Labels
bug Something isn't working stale

Comments

@danhorton7
Copy link

Describe the bug

ERROR: Cannot install -r requirements.txt (line 10), -r requirements.txt (line 12), -r requirements.txt (line 13), -r requirements.txt (line 14), -r requirements.txt (line 15), -r requirements.txt (line 2), -r requirements.txt (line 7), -r requirements.txt (line 8) and langchain-core==0.2.36 because these package versions have conflicting dependencies.

Steps to reproduce

pip install -r requirements.txt

Expected behavior

Install

Actual behavior

ERROR: Cannot install -r requirements.txt (line 10), -r requirements.txt (line 12), -r requirements.txt (line 13), -r requirements.txt (line 14), -r requirements.txt (line 15), -r requirements.txt (line 2), -r requirements.txt (line 7), -r requirements.txt (line 8) and langchain-core==0.2.36 because these package versions have conflicting dependencies.

Branch

None

Branch name

No response

Python version

No response

LLM Used

No response

Model used

No response

Additional context

Collecting langchain-anthropic (from -r requirements.txt (line 8))
  Using cached langchain_anthropic-0.0.1-py3-none-any.whl.metadata (515 bytes)
ERROR: Cannot install -r requirements.txt (line 10), -r requirements.txt (line 12), -r requirements.txt (line 13), -r requirements.txt (line 14), -r requirements.txt (line 15), -r requirements.txt (line 2), -r requirements.txt (line 7), -r requirements.txt (line 8) and langchain-core==0.2.36 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.3.0 depends on langchain-core<0.4.0 and >=0.3.17
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.2.4 depends on langchain-core<0.4.0 and >=0.3.15
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.2.3 depends on langchain-core<0.4.0 and >=0.3.9
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.2.1 depends on langchain-core<0.4.0 and >=0.3.1
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.2.0 depends on langchain-core<0.4.0 and >=0.3.0
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.11 depends on langchain-core<0.2.0 and >=0.1.43
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.10 depends on langchain-core<0.2.0 and >=0.1.43
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.9 depends on langchain-core<0.2.0 and >=0.1.43
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.8 depends on langchain-core<0.2.0 and >=0.1.42
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.7 depends on langchain-core<0.2.0 and >=0.1.41
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.6 depends on langchain-core<0.2.0 and >=0.1.33
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.5 depends on langchain-core<0.2.0 and >=0.1.33
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.4 depends on langchain-core<0.2 and >=0.1
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.3 depends on langchain-core<0.2 and >=0.1
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.2 depends on langchain-core<0.2 and >=0.1
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.1 depends on langchain-core<0.2 and >=0.1
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.1.0 depends on langchain-core<0.2 and >=0.1
    The user requested langchain-core==0.2.36
    langchain 0.2.11 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-community 0.2.10 depends on langchain-core<0.3.0 and >=0.2.23
    langchain-google-genai 1.0.10 depends on langchain-core<0.3 and >=0.2.33
    langchain-ollama 0.1.3 depends on langchain-core<0.3.0 and >=0.2.36
    langchain-openai 0.1.17 depends on langchain-core<0.3.0 and >=0.2.20
    langchain-text-splitters 0.2.2 depends on langchain-core<0.3.0 and >=0.2.10
    lib-resume-builder-aihawk 0.1 depends on langchain-core
    langchain-anthropic 0.0.2 depends on langchain-core<0.2 and >=0.1
@danhorton7 danhorton7 added the bug Something isn't working label Dec 6, 2024
@cyrilcolinet
Copy link

Same here. Did you found any solution for this?

@cyrilcolinet
Copy link

UPDATE: I tried to downgrade from 3.13 to 3.10 and now it works well. You should try, maybe this will solve your issue.

Copy link

This issue has been marked as stale due to inactivity. Please comment or update if this is still relevant.

@github-actions github-actions bot added the stale label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants