Skip to content

protobuf 4 is not supported #59221

@aucampia

Description

@aucampia
Click to expand!

Issue Type

Build/Install

Have you reproduced the bug with TF nightly?

Yes

Source

binary

Tensorflow Version

2.11.0

Custom Code

No

OS Platform and Distribution

Fedora Linux 37 (Xfce)

Mobile device

No response

Python version

3.11

Bazel version

No response

GCC/Compiler version

No response

CUDA/cuDNN version

No response

GPU model and memory

No response

Current Behaviour?

When I try to use tensorflow with protobuf newer than version 3 I get this:


$ poetry add 'tensorflow==2.11.0' 'protobuf>=4'

Updating dependencies
Resolving dependencies... (0.2s)

Because tensorflow-issue depends on tensorflow (2.11.0) which depends on protobuf (>=3.9.2,<3.20), protobuf is required.
So, because tensorflow-issue depends on protobuf (>=4), version solving failed.


The reason for this is:

https://github.com/tensorflow/tensorflow/blame/d0dc98c5c8f5deea2447a3405af20f5fb245a561/tensorflow/tools/pip_package/setup.py#L100-L107

My expectation was that tensorflow supports more recent versions of protobuf.

Standalone code to reproduce the issue

mkdir -vp /var/tmp/tensorflow-issue
poetry -C /var/tmp/tensorflow-issue init --no-interaction
poetry -C /var/tmp/tensorflow-issue add 'tensorflow==2.11.0' 'protobuf>=4'

Relevant log output

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions