-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
Compatibility problem 4.x vs 3.x #10686
Comments
Proto is from etcd - nothing special:
|
It looks like the python generator is not handling optional on custom descriptor options in proto3. |
Has anyone managed to fix this ? We're stuck with an old version of grpc (and we can't update to python 3.11) because of this. |
etcd suggest that is problem with Python runtime library but I am not sure. |
I'm not sure why but it seems fixed for us. Can anyone else confirm that? |
This was fixed in protocolbuffers/upb#1034 and released in 4.21.12. |
What version of protobuf and what language are you using?
Version: pip install protobuf==4.21.7
Language: Python
What operating system (Linux, Windows, ...) and version?
Windows 10
What runtime / compiler are you using (e.g., python version or gcc version)
3.10.7
What did you do?
Steps to reproduce the behavior:
version_pb2.py
What did you expect to see
Just working import ... or better explanation what is wrong and how to fix it if it error.
What did you see instead?
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment
The text was updated successfully, but these errors were encountered: