Skip to content

Conflict between ChromaDB and another package due to duplicate opentelemetry proto file #1328

Open
@hufffs

Description

@hufffs

Description:

I'm encountering a conflict when running a project that uses ChromaDB alongside another package (possibly New Relic or similar), which results in the following error:

TypeError: Couldn't build proto file into descriptor pool: duplicate file name opentelemetry/proto/common/v1/common.proto
This occurs when importing chromadb, specifically during this line in the stack trace:

Environment:

Python 3.12
ChromaDB 0.5.23
Other packages potentially bundling different versions of opentelemetry-proto
Expected behavior:

The project should run normally without protobuf descriptor conflicts between packages using opentelemetry.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions