美文网首页
protobuf的坑

protobuf的坑

作者: lessIsMore_技术笔记 | 来源:发表于2019-07-17 16:35 被阅读0次

项目中用到了Java的protobuf生成的序列化数据,在python中进行反序列化

版本为3.6.1

其中有一个为递归结构,当层数大于100时,python反序列化报错

通过查找,发现可通过如下代码解决

from google.protobuf.pyext._message import SetAllowOversizeProtos     SetAllowOversizeProtos(True)

但是实际测试不生效

通过若干实现,终于发现python的protobuf库需要升级到3.9.0才能反序列化成功

哭,浪费时间若干

相关文章

  • protobuf的坑

    项目中用到了Java的protobuf生成的序列化数据,在python中进行反序列化 版本为3.6.1 其中有一个...

  • protobuf使用

    protobuf的使用 protobuf .proto文件 idea安装protobuf插件 syntax = ...

  • protobuf

    protobuf是什么#### protobuf是"Protocol Buffers"的简称。protobuf是一...

  • openGauss小坑#配置protobuf

    Protobuf是一种轻便高效的序列化数据结构的协议,用于网络通信和数据存储.体积小,序列化速度和传输速度快 op...

  • mac上安装Protobuf

    为什么要安装protobuf 什么是protobuf 怎么判断有没有安装过protobuf? 安装protobuf...

  • Google Protocol Buffers 数据交换协议

    protobuf 简介 protobuf是什么 protobuf(Protocol Buffers)是Google...

  • 在Windows下使用Protobuf的示例

    在Windows下使用Protobuf的示例 摘要 Protobuf全称为Google ProtoBuf,它是由G...

  • Mac protobuf安装、卸载

    protobuf 安装步骤:1、先下载protobuf文件,链接 protobuf-3.12.0,自己找需要的版本...

  • build protobuf,交叉编译protobuf-c

    1,编译protobuf 可以在protobuf git上面找到PC上,比如ubuntu下编译protobuf的方...

  • protobuf与Objective-C的坑

    2protocolbuffer(以下简称PB)是google 的一种数据交换的格式,它独立于语言,独立于平台。go...

网友评论

      本文标题:protobuf的坑

      本文链接:https://www.haomeiwen.com/subject/gqhclctx.html