protobuf-python Questions

1

I'm getting this error Can't pickle <class 'google.protobuf.pyext._message.CMessage'>: it's not found as google.protobuf.pyext._message.CMessage when I try to create a UDF in PySpark. A...

2

Does protobuf support relative imports for python? I have been unsuccessful in creating a protobuf build script that supports this. When generating python-classes from my .proto-files, I am only a...
Suter asked 6/5, 2020 at 14:13

1

Solved

I'm working with a protobuf message that has some of the fields marked for deprecation with [deprecated = true]. To my understanding the field can still be used by some part of the code (maybe with...
Accessible asked 20/9, 2022 at 22:49

1

Solved

I'm currently trying to generate python code from a proto file. My proto file looks like this: syntax = "proto3"; package display; message Hello { uint32 version = 1; uint32 value = 2...
Wilfredwilfreda asked 2/6, 2022 at 9:1

1

Solved

Is it possible to get proto files from generated pb2.py with protoc? Will be the same reverse engineering possible for gRPC?
Colicweed asked 25/12, 2021 at 12:6

0

Say I have a message defined in test.proto as: message TestMessage { int64 id = 1; string title = 2; string subtitle = 3; string description = 4; } And I use protoc to convert it to Python lik...
Pomiculture asked 13/5, 2020 at 21:49

1

I was trying to see if it's possible to run different instances of the same service on a single GRPC server, but it looks like I'm not able to do so. So I was wondering if I was doing anything wron...
Orizaba asked 30/4, 2020 at 16:21

1

Is there a way to ask protoc to generate empty __init__.py files in the directories that it uses to generated the .py files so that they can be used as modules?
Billbillabong asked 27/3, 2019 at 17:20
1

© 2022 - 2024 — McMap. All rights reserved.