Open crissvilleda opened 1 month ago
I am also facing the same issue.
OS: Windows 11
python: 3.11, 3.12 (both shows the same issues)
chroma: 0.5.5, 0.5.0 (same issue)
@crissvilleda thanks for reporting this:
This is probably a protobuf compatibility issue on the OTEL lib. In our case we don't have an upper bound for the libs:
'opentelemetry-exporter-otlp-proto-grpc>=1.2.0',
Which may lead to such kind of issues.
May I suggest you downgrade your OTEL grpc lib:
pip install opentelemetry-exporter-otlp-proto-grpc==1.25.0
Optionally also downgrade the other deps:
opentelemetry-sdk==1.25.0
opentelemetry-api==1.25.0
EDIT: I stand corrected. While transitive error indeed originates in the opentelemetry-proto
. The root is likely in the protobuf
library and possibly the underlying libprotoc
Also facing this, pretty big issue, as some of my other packages require a newer protobuf version.
I solved it as suggested by @tazarov
Facing the same issue while deploying an app on streamlit community cloud
We really need a fix, or at least a workaround for this. I am running a service that addresses bot Weaviate (requiring protobuf>5.0.0) and Chroma, which wants <3.20.0.
@tazarov Can you at least make opentelemetry an optional requirement? Since it is an opt-in feature anyway.
What happened?
Chroma is raising this error "" TypeError: Descriptors cannot be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are:
Versions
Chroma V.0.5.0 -> V0.5.5, Python 3.10.1
Relevant log output