Skip to content

[Bug] Unable to import generated protocol buffer code #1080

@SpencerC

Description

@SpencerC

What are you really trying to do?

Depend on generated protocol buffer files.

Describe the bug

I’m trying to start using the Temporal python SDK and I’m getting the following error when I try to import

google.protobuf.runtime_version.VersionError: Detected mismatched Protobuf Gencode/Runtime major versions when loading chat/v1/types.proto: gencode 6.31.1 runtime 5.29.5. Same major version is required. See Protobuf version guarantees at https://protobuf.dev/support/cross-version-runtime-guarantee.

We have other dependencies that need a minimum protobuf version 31.1. Can you please update the underlying protobuf/grpc versions so that it works with newer gencode?

Minimal Reproduction

  1. Generate a Python protocol buffer library using the latest version protoc.
  2. Attempt to load that library into a module that also depends on the Temporal python SDK.

Environment/Versions

  • Temporal Version: 1.17.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions