Difficulty in using google.protobuf.Timestamp in pyscript

28 views
Skip to first unread message

Kundana Reddy

unread,
Jul 14, 2020, 3:17:59 AM7/14/20
to Protocol Buffers
Hello,

I am using protobuf for the first time and I have a type of google.protobuf.timestamp for getting Date. How do I use these types in pyscript?

Thanks,
N.kundana

dzintars...@gmail.com

unread,
Jul 27, 2020, 9:50:18 AM7/27/20
to Protocol Buffers
I am not completely sure, but i have this note written:

In order to compile protobufs, `/usr/local/include` should be populated with [protocolbuffers/protobuf](https://github.com/protocolbuffers/protobuf/releases/download/v3.12.3/protoc-3.12.3-linux-x86_64.zip).
Copy `include/google/protobuf` directory from downloaded archive into `/usr/local/include/google`

IIRC that directory contains missing annotations. You could include that directory in your proto directory and pass it as argument to the protoc compiler.

Hope this leads somewhere. Hadn't worked with it for some time.

Reply all
Reply to author
Forward
0 new messages