Skip to content

Versioning issue for gencode and protobuf #12

@aitianshi

Description

@aitianshi

I followed the steps of the Micro2024 tutorial (https://astra-sim.github.io/assets/tutorials/micro-2024/7_demo.pdf) but when running commands of slide n.10

python3 generate_all_reduce.py

I got the following error

Traceback (most recent call last):
  File "/app/micro2024/chakra-demo/demo1/generate_all_reduce.py", line 4, in <module>
    from chakra.schema.protobuf.et_def_pb2 import (
  File "/opt/venv/astra-sim/lib/python3.10/site-packages/chakra/schema/protobuf/et_def_pb2.py", line 12, in <module>
    _runtime_version.ValidateProtobufRuntimeVersion(
  File "/opt/venv/astra-sim/lib/python3.10/site-packages/google/protobuf/runtime_version.py", line 106, in ValidateProtobufRuntimeVersion
    _ReportVersionError(
  File "/opt/venv/astra-sim/lib/python3.10/site-packages/google/protobuf/runtime_version.py", line 50, in _ReportVersionError
    raise VersionError(msg)
google.protobuf.runtime_version.VersionError: Detected mismatched Protobuf Gencode/Runtime major versions when loading et_def.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.

I saw that protobuf version is required to be 5.*. How can I downgrade gencode to get the same major version ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions