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]: requirements.txt longchain versions can't work #912

Open
franciscof5 opened this issue Nov 21, 2024 · 8 comments
Open

[BUG]: requirements.txt longchain versions can't work #912

franciscof5 opened this issue Nov 21, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@franciscof5
Copy link

Describe the bug

requirements.txt longchain versions can't work

Steps to reproduce

I am on Mac, tried python versions 3.9, 3.10, 3.11, 3.13 with thousand of different versions for all langchain libraries. Please, I cant fix it by myself, I am no expert in longchain

I tried also all branchs and randomly choosed hash to checkout...

Using cached anthropic-0.8.1-py3-none-any.whl.metadata (13 kB)
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 because these package versions have conflicting dependencies.

The conflict is caused by:
The user requested langchain-core
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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

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

Expected behavior

No response

Actual behavior

No response

Branch

None

Branch name

No response

Python version

No response

LLM Used

No response

Model used

No response

Additional context

No response

@franciscof5 franciscof5 added the bug Something isn't working label Nov 21, 2024
@zhezhang91
Copy link

Same issue

@franciscof5
Copy link
Author

Just removed all the langchain requirements, it get back to work but now:

Button 1 found but not clickable

@aisog
Copy link

aisog commented Nov 22, 2024

same to me

ERROR: Cannot install -r requirements.txt (line 2), -r requirements.txt (line 7), -r requirements.txt (line 8) and langchain-core because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

@niurixmaxx
Copy link

I installed this yesterday and it worked... however, I cant get past the dependencies installation.... Im running windows 11 with Python Python 3.13.0

@niurixmaxx
Copy link

I installed this yesterday and it worked... however, I cant get past the dependencies installation.... Im running windows 11 with Python Python 3.13.0

I just ran installation with the anaconda option and it worked. I have not tested the execution but the dependencies worked.

@KeithBH
Copy link

KeithBH commented Nov 23, 2024

Same issue

@muzammildafedar
Copy link

I faced the same issue with my Python 3.13 version. I downgraded to Python 3.10, and it worked fine

@franciscof5
Copy link
Author

Nice, I used chatpgt to help me unistall all python versions from my mac and then used pyenv to manage different python versions, tried the 3.10 mentioned above by @muzammildafedar and it worked

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
Status: No status
Development

No branches or pull requests

6 participants