Use of symbol database in python when api version is 2

65 views
Skip to first unread message

Arun Ramakrishnan

unread,
Jun 16, 2021, 3:16:26 PM6/16/21
to Protocol Buffers
Hi folks, 

This python documentation for use of symbol database does not seem to work when the api implementation version is 2. The registration symbol in the pool is skipped here.

Is there a workaround for the registration to work ? Or should we not be using the symbol database when the api version is 2.  

thanks,
Arun

Adam Cozzette

unread,
Jun 17, 2021, 7:57:38 PM6/17/21
to Arun Ramakrishnan, Protocol Buffers
My understanding is that api_implementation.Type() is supposed to indicate whether the pure-Python or Python-C++ implementation is being used, and will always return either 'python' or 'cpp'. Are you finding that it is returning something else and thereby causing the symbol registration to be skipped?

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/1407e35a-c2f0-4f62-87ec-03ef5828c447n%40googlegroups.com.

Arun Ramakrishnan

unread,
Jun 30, 2021, 4:23:48 PM6/30/21
to Protocol Buffers
The issue is resolved. A local env setup issue. thank you.
Reply all
Reply to author
Forward
0 new messages