chroma-core / chroma-core/chroma
[Bug]: Error chroma with protobuf
- Dominant language
- Rust
- Stars
- 29.3k
- Forks
- 2.5k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 38
Description
### 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:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).""
### Versions
Chroma V.0.5.0 -> V0.5.5, Python 3.10.1
### Relevant log output
```shell
from langchain_chroma.vectorstores import Chroma
[2024-07-24T17:58:14.972Z] File "/home/criss/coders/IL-1261A-Functions-chat-Dr-Huang/.venv/lib/python3.10/site-packages/langchain_chroma/vectorstores.py", line 23, in
[2024-07-24T17:58:14.972Z] import chromadb
[2024-07-24T17:58:14.972Z] File "/home/criss/coders/IL-1261A-Functions-chat-Dr-Huang/.venv/lib/python3.10/site-packages/chromadb/__init__.py", line 5, in
[2024-07-24T17:58:14.972Z] from chromadb.auth.token_authn import TokenTransportHeader
[2024-07-24T17:58:14.972Z] File "/home/criss/coders/IL-1261A-Functions-chat-Dr-Huang/.venv/lib/python3.10/site-packages/chromadb/auth/token_authn/__init__.py", line 20, in
[2024-07-24T17:58:14.972Z] from chromadb.telemetry.opentelemetry import (
[2024-07-24T17:58:14.972Z] File "/home/criss/coders/IL-1261A-Functions-chat-Dr-Huang/.venv/lib/python3.10/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 12, in
[2024-07-24T17:58:14.972Z] from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
[2024-07-24T17:58:14.972Z] File "/home/criss/coders/IL-1261A-Functions-chat-Dr-Huang/.venv/lib/python3.10/site-packages/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py", line 22, in
[2024-07-24T17:58:14.972Z] from opentelemetry.exporter.otlp.proto.grpc.exporter import (
[2024-07-24T17:58:14.972Z] File "/home/criss/coders/IL-1261A-Functions-chat-Dr-Huang/.venv/lib/python3.10/site-packages/opentelemetry/exporter/otlp/proto/grpc/exporter.py", line 39, in
[2024-07-24T17:58:14.972Z] from opentelemetry.proto.common.v1.common_pb2 import (
[2024-07-24T17:58:14.972Z] File "/home/criss/coders/IL-1261A-Functions-chat-Dr-Huang/.venv/lib/python3.10/site-packages/opentelemetry/proto/common/v1/common_pb2.py", line 36, in
[2024-07-24T17:58:14.972Z] _descriptor.FieldDescriptor(
[2024-07-24T17:58:14.972Z] File "/usr/lib/azure-functions-core-tools-4/workers/python/3.10/LINUX/X64/google/protobuf/descriptor.py", line 561, in __new__
[2024-07-24T17:58:14.972Z] _message.Message._CheckCalledFromGeneratedFile(
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.