Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protobuf 5.28 runtime warning #1006

Open
pdgendt opened this issue Sep 16, 2024 · 4 comments
Open

Protobuf 5.28 runtime warning #1006

pdgendt opened this issue Sep 16, 2024 · 4 comments

Comments

@pdgendt
Copy link
Contributor

pdgendt commented Sep 16, 2024

Since protocolbuffers/protobuf#17241 got merged, the following warning is printed when using nanopb:

google/protobuf/runtime_version.py:112: UserWarning: Protobuf gencode version 5.27.2 is older than the runtime version 5.28.1 at nanopb.proto. Please avoid checked-in Protobuf gencode that can be obsolete.

An upstream issue has been created here: protocolbuffers/protobuf#18096

@PetteriAimonen
Copy link
Member

This sounds like mismatched grpcio-tools and python-protobuf versions.

@PetteriAimonen
Copy link
Member

Ah, yeah, no later grpcio-tools available. I hate how bad python-protobuf is at forward/backward compatibility.

@mrtzcspr
Copy link

mrtzcspr commented Oct 2, 2024

@PetteriAimonen Are you aware that this also affects the latest release bin package?

Steps to reproduce:

curl -OL https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.9-linux-x86.tar.gz
tar -xf nanopb-0.4.9-linux-x86.tar.gz
cd nanopb-0.4.9-linux-x86/examples/simple/
 ../../generator-bin/nanopb_generator simple.proto

produces:

google/protobuf/runtime_version.py:112: UserWarning: Protobuf gencode version 5.27.2 is older than the runtime version 5.28.2 at nanopb.proto. Please avoid checked-in Protobuf gencode that can be obsolete.
Writing to simple.pb.h and simple.pb.c

@PetteriAimonen
Copy link
Member

@mrtzcspr I was not, thanks for letting me know. I guess I should lock the versions used for generating binary packages, though then I'd forget to update them..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants