duanmajing9332 2016-12-23 07:54
浏览 121
已采纳

使用golang / protobuf时在数据存储区中生成错误

I have an application which uses both bigquery and cloud datastore APIs. I use glide for go package management. I keep seeing build errors with either bigquery or datastore depending upon the version of golang/protobuf that I use. I am not able to find a version that is compatible with both bigquery and datastore. Either one of the packages keeps failing to build.

Build errors in datastore while using golang/protobuf version 7cc19b78d562895b13596ddce7aafb59dd789318:

../../vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go:33: undefined: proto.ProtoPackageIsVersion2 ../../vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go:41: unknown proto.ExtensionDesc field 'Filename' in struct literal ../../vendor/google.golang.org/genproto/googleapis/api/annotations/annotations.pb.go:48: undefined: proto.RegisterFile ../../vendor/google.golang.org/genproto/googleapis/api/annotations/http.pb.go:540: undefined: proto.RegisterFile Build errors in bigquery while using golang/protobuf version 8ee79997227bf9b34611aee7946ae64735e6fd93:

../../vendor/cloud.google.com/go/bigquery/params.go:55: undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:56: undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:57: undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:58: undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:59: undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:60: undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:61: undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:94: undefined: bigquery.QueryParameter ../../vendor/cloud.google.com/go/bigquery/params.go:110: undefined: bigquery.QueryParameterType ../../vendor/cloud.google.com/go/bigquery/params.go:178: undefined: bigquery.QueryParameter

Opened an issue here - https://github.com/GoogleCloudPlatform/google-cloud-go/issues/475. Any pointers would be appreciated.

  • 写回答

1条回答 默认 最新

  • duan4739 2016-12-23 13:59
    关注

    You did the right thing by filing a bug, so hopefully that will be resolved soon. The most recent version of the cloud APIs adds support for query parameters but based on the error that you are seeing, one of the libraries was not updated properly.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败
  • ¥15 树莓派5怎么用camera module 3啊
  • ¥20 java在应用程序里获取不到扬声器设备
  • ¥15 echarts动画效果的问题,请帮我添加一个动画。不要机器人回答。
  • ¥15 Attention is all you need 的代码运行
  • ¥15 一个服务器已经有一个系统了如果用usb再装一个系统,原来的系统会被覆盖掉吗
  • ¥15 使用esm_msa1_t12_100M_UR50S蛋白质语言模型进行零样本预测时,终端显示出了sequence handled的进度条,但是并不出结果就自动终止回到命令提示行了是怎么回事: