-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
Incompatible with CPP protobuf implementation for Python #2646
Comments
The same issue happens when using google.cloud.bigtable from google-cloud 0.22 or 0.23. Can we get some resolution here please? |
/cc @lukesneeringer |
protobuf's cpp and python implementation has different undefined behavior.
I think the google-cloud api depends on these undefined behaviors. Unless
google-cloud api has a new release that removes these api, you can not use
protobuf cpp implementation.
…On Mon, Feb 27, 2017 at 09:33 Danny Hermes ***@***.***> wrote:
/cc @lukesneeringer <https://github.com/lukesneeringer>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2646 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE9H5Z5MCiBOWe3wm1s7TnpVBIAMoiERks5rgwj3gaJpZM4Lxwos>
.
|
@TeBoring The error is from a Python file generated via |
May I see the stack trace?
…On Mon, Feb 27, 2017 at 09:59 Danny Hermes ***@***.***> wrote:
@TeBoring <https://github.com/TeBoring> The error is from a Python file
generated via protoc. We don't have any custom behavior, it's all just
vanilla usage of protobuf.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2646 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE9H5YEuffUOjR82wzOVSo4ans4G1KBmks5rgw8IgaJpZM4Lxwos>
.
|
I am referring to the stack trace in the beginning of this issue: |
@dhermes The stack trace doesn't reveal any generated protobuf files. Can you provide the .proto file that can reproduce the error? |
The google/longrunning/operations_grpc.py file in the stack trace might be a generated file of grpc. @haberman mentioned he might know what's going on. |
Here is the proto. For comparison, here is the vanilla |
I actually dealt with this issue a couple weeks ago:
|
@xfxyjwf @gfernandessc Can you verify (with If it is still broken after upgrading to 1.5.2, let me know and I will investigate. Also tagging the relevant pull request for reference. |
Thanks Luke! I can confirm it works now with 1.5.2. Thank you everyone for digging into this over the past day. |
Yeah. I fixed that in 1.5.2. |
Thanks for confirming! |
Hello,
(
I originally filed this to googleapis/google-cloud-python#2971, but this seems to be an issue in protobuf.
cc: @dhermes, @bjwatson, @geigerj
)
I'm trying to use C++ protobuf implementation for Python since pure Python proto is too slow.
But importing
gcloud.bigtable
package throws an exceptionTypeError: Descriptors should not be created directly, but only retrieved from their parent.
.Is there any way to fix this problem?
Thanks,
OS type and version
Tested on ubuntu 14.04 / osx 10.12.
Python version and virtual environment information
python --version
Python 2.7.6
google-cloud-python version
pip show google-cloud
,pip show google-<service>
orpip freeze
google-cloud 0.22.0 / 0.18.3
Stacktrace if available
from gcloud import bigtable
The text was updated successfully, but these errors were encountered: