Skip to content

rules_python and protobuf #3003

Closed as not planned
Closed as not planned
@gfrankliu

Description

@gfrankliu

I am upgrading rules_python 0.38.0 to 1.4.1, which implicitly upgraded protobuf to [email protected].

Our Python codes use tensorflow 2.15 which has a dependency on the old protobuf 3.2x, as listed in the requirements.txt

Now python bazel test fails with

ImportError: cannot import name 'runtime_version' from 'google.protobuf' 

Can we make python use the old protobuf package from requirements.txt while letting MODULE.bazel to have a newer protobuf version? If this is not possible, is there a workaround or can we make it a feature request?

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