Skip to content

Dependency conflict in inference-env.yaml: protobuf and grpcio #2

@QGrain

Description

@QGrain

Hi authors,

Thanks for your great work!

I encountered a dependency conflict error when trying to create the conda environment using inference-env.yaml.

Issue: The YAML pins protobuf==3.20.3, but grpcio and grpcio-tools require a newer version of protobuf (>= 4.x or 5.x), causing the installation to fail.

Solution: I managed to fix this by downgrading grpcio and grpcio-tools to 1.43.0, which is compatible with protobuf 3.20.3.

Here is the working pip section in inference-env.yaml:

  - pip:
    - grpcio==1.43.0          # downgrade
    - grpcio-tools==1.43.0 # downgrade
    # ...
    - protobuf==3.20.3

Hope this would be of help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions