Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Cannot install jina because these package versions have conflicting dependencies #143

Open
jasonz1360 opened this issue Sep 7, 2023 · 3 comments

Comments

@jasonz1360
Copy link

Macbook M1

steps:
run pip install langchain-serve

ERROR: Cannot install jina because these package versions have conflicting dependencies.

The conflict is caused by:
opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0
opentelemetry-instrumentation-fastapi 0.40b0 depends on opentelemetry-instrumentation==0.40b0
opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0
opentelemetry-instrumentation-fastapi 0.39b0 depends on opentelemetry-instrumentation==0.39b0
opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0
opentelemetry-instrumentation-fastapi 0.38b0 depends on opentelemetry-instrumentation==0.38b0
opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0
opentelemetry-instrumentation-fastapi 0.37b0 depends on opentelemetry-instrumentation==0.37b0
opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0
opentelemetry-instrumentation-fastapi 0.36b0 depends on opentelemetry-instrumentation==0.36b0
opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0
opentelemetry-instrumentation-fastapi 0.35b0 depends on opentelemetry-instrumentation==0.35b0
opentelemetry-instrumentation-aiohttp-client 0.33b0 depends on opentelemetry-instrumentation==0.33b0
opentelemetry-instrumentation-fastapi 0.34b0 depends on opentelemetry-instrumentation==0.34b0

To fix this you could try to:

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

JoanFM commented Sep 7, 2023

There has been a new release of jina that should have fixed this. Can you make sure to install jina==3.20.2 ?

@Jiahuan-Pei
Copy link

Jiahuan-Pei commented Sep 7, 2023

I met with the same issue and tried to install jina==3.20.2 from command line but still does not work for me, then I changed the version in requirements.txt and install from the source code. It works for me now.
git clone https://github.com/jina-ai/langchain-serve.git
cd langchain-serve
pip install .

@jasonz1360
Copy link
Author

@JoanFM Hi, I finally fix issue by these steps:

pip install langchain-serve --use-deprecated legacy-resolver
pip install jina==3.20.2
pip install langchain-serve

I don't know why, but it works.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants