-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
[Python] Release 4.21.0 broke multiple Google Cloud client libraries ("TypeError: Descriptors cannot not be created directly.") #10051
Comments
Same issue when using onnx to convert network formats. |
Same for the TensorFlow 1.15.5. |
Upgrading the following packages to latest fixed it for me. Not sure which packages actually needed upgrading.
|
I've set protobuf==3.20.1 and it resolved the issue |
Thanks, this also worked for me |
yes, this thing works but this is not a permanent fix. Many libraries like google-cloud-datastore are having the dependency on protobuf >= 3.19.0 and most of the platforms like Databricks are already pre-installed with protobuf == 3.17.2 by default which is causing an issue in various platforms and frameworks. |
setting protobuf==3.20.x or setting PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python works |
Note that PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python will use pure-Python parsing and will be much slower |
@mike-luabase I got this error deploying to Cloud Functions. Is that due to needing to set |
Since the traceback points to
Am I wrong to assume that the error comes from Google's own _pb2.py file that has not been regenerated with protoc >= 3.19.0? So for now there is nothing we can do but wait and use protobuf==3.20.1 if we want to use google cloud logging. |
Try adding
to your requirements, if that fixes it, don't set |
True, I would just set it if freezing the protobuf version does not work |
I would assume that the Google Cloud client libraries have tests on protobuff to ensure that new releases dont break them. I am wondering how this happened |
4.21.0 is broken for torch tensorboard as well. As mentioned above, easy fix is to uninstall it and install |
I've set protobuf==3.20.0 and it resolved the issue here |
- see: protocolbuffers/protobuf#10051 - ``3.19.4`` is the latest non-breaking supported version for python ``3.6`` which is still supported in ``v5```
- see: protocolbuffers/protobuf#10051 - ``3.19.4`` is the latest non-breaking supported version for python ``3.6`` which is still supported in ``v5```
- Adds cpu prediction support - Fixes exception w/ not existing Raganato dataset directory - Fixes protobuf lib latest version incompatibility protocolbuffers/protobuf#10051
- Adds cpu prediction support - Fixes exception w/ not existing Raganato dataset directory - Fixes protobuf lib latest version incompatibility (protocolbuffers/protobuf#10051)
Any permanent fix for this? |
The permanent fix is to regenerate affected _pb2.py files with protoc 3.19 or later, as mentioned in the initial post. (If you are not the owner of the affected files, you'll need to file a bug with the relevant project to do that.) |
It work! |
Fixed fangfufu/Linux-Fake-Background-Webcam#179 The reason behind it is in protocolbuffers/protobuf#10051
Example error for the
google-cloud-logging==3.1.1
library usingprotobuf==4.21.0
:Note that this works fine with the previous
protobuf==3.20.1
release.To reproduce:
The text was updated successfully, but these errors were encountered: