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

[Install issue]: Pip dependency issues with Chroma & backoff (used by opentelemetry-exporter-otlp-proto-grpc) #2086

Open
ajram23 opened this issue Apr 30, 2024 · 4 comments
Labels
installation trouble trouble building or installing chroma

Comments

@ajram23
Copy link

ajram23 commented Apr 30, 2024

What happened?

Having dependency issues with backoff. The conflict is caused by:
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.11.1 depends on backoff<2.0.0 and >=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.11.0 depends on backoff<2.0.0 and >=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.10.0 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.9.1 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.9.0 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.8.0 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.7.1 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.7.0 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.6.2 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.6.1 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.6.0 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.5.0 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.4.1 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.4.0 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.3.0 depends on backoff~=1.10.0
langfuse 2.27.3 depends on backoff<3.0.0 and >=2.2.1
posthog 3.5.0 depends on backoff>=1.10.0
opentelemetry-exporter-otlp-proto-grpc 1.2.0 depends on backoff~=1.10.0

Any recommendations on how to resolve this?. Please and thank you!

Versions

Chroma 0.5, Mac OS 17.X, Python 3.12.2

Relevant log output

No response

@ajram23 ajram23 added the installation trouble trouble building or installing chroma label Apr 30, 2024
@beggers
Copy link
Member

beggers commented Apr 30, 2024

hey @ajram23 !

Are you installing chroma in a virtual environment? This looks like chroma requires a conflicting version of a package from one you have installed on your system.

@ajram23
Copy link
Author

ajram23 commented May 1, 2024

@beggers Yes I am and I understand that it is. backoff version that you folks seem to be using is pretty old and others have moved on to newer ones. opentelemetry-exporter-otlp-proto-grpc has also seems to be have updated https://pypi.org/project/opentelemetry-exporter-otlp-proto-grpc/#history So wondering if you have a recommendation on how to work around this issue? I have also asked the langfuse team if they can support backoff>=1.10.0 but for now I am stuck! Any help is greatly appreciated!

@beggers
Copy link
Member

beggers commented May 1, 2024

Hm, this is strange.

opentelemetry-exporter-otlp-proto-grpc dropped backoff as a requirement in version 1.23.0 so I would expect you to be able to just pull that. My attempts to reproduce this issue fail with the current requirements.txt since it just installs a newer version of the library.

In any event, I'll bump the version explicitly on our end which will hopefully fix this for you.

#2111

beggers added a commit that referenced this issue May 1, 2024
## Description of changes

*Summarize the changes made by this PR.*
 - Improvements & Bug fixes
- Bump otel grpc collector version because of possible dependency
issues: #2086

## Test plan
*How are these changes tested?*

- [x] Tests pass locally with `pytest` for python, `yarn test` for js,
`cargo test` for rust

## Documentation Changes
*Are all docstrings for user-facing APIs updated if required? Do we need
to make documentation changes in the [docs
repository](https://github.com/chroma-core/docs)?*
@ajram23
Copy link
Author

ajram23 commented May 2, 2024

Yeah I agree. It is strange that pip complains about it but pipdeptree doesn't show it. Also posthog seems to be ok with any version over 1.10.X "posthog 3.5.0 depends on backoff>=1.10.0"

Either ways I appreciate the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation trouble trouble building or installing chroma
Projects
None yet
Development

No branches or pull requests

2 participants