douxiluan6555 2018-04-13 17:57
浏览 401
已采纳

找不到超级账本链码库

Hi to all who can help.

Currently developing a chaincode for fabric version 1.0. The problem is, even after vendoring, when I do the deployment, I get this error.

[DEBUG] instantiate-chaincode - 
============ Instantiate chaincode on organization XYZ ============

error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/XYZ/vendor/github.com/hyperledger/fabric/bccsp/factory/pluginfactory.go:12:2: cannot find package "plugin" in any of:
        /chaincode/input/src/XYZ/vendor/plugin (vendor tree)
        /opt/go/src/plugin (from $GOROOT)
        /chaincode/input/src/plugin (from $GOPATH)
        /opt/gopath/src/plugin
"
    at /usr/src/app/node_modules/grpc/src/node/src/client.js:434:17
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "chaincode/input/src/XYZ/vendor/github.com/hyperledger/fabric/bccsp/factory/pluginfactory.go:12:2: cannot find package "plugin" in any of:
        /chaincode/input/src/XYZ/vendor/plugin (vendor tree)
        /opt/go/src/plugin (from $GOROOT)
        /chaincode/input/src/plugin (from $GOPATH)
        /opt/gopath/src/plugin
"

The fabric images that I'm using are:

  • hyperledger/fabric-peer:x86_64-1.0.3
  • hyperledger/fabric-ca:x86_64-1.0.3
  • hyperledger/fabric-tools:x86_64-1.0.3
  • hyperledger/fabric-couchdb:x86_64-0.4.6
  • hyperledger/fabric-orderer:x86_64-1.0.3
  • 写回答

1条回答 默认 最新

  • duanjiong1952 2018-04-17 14:54
    关注

    This answer was provided by Gari Singh, on a comment above:

    2 solutions: 1) Move to Fabric v1.1 which was just recently released 2) I was unable to get govendor to work properly in terms of pulling down the right version of Fabric. So you could do a "go get" for "github.com/hyperledger/fabric", then "cd $GOPATH/src/github.com/hyperleger/fabric", then "git checkout v1.0.3" and then go back to your chaincode project and do "govendor add ..." for whichever Fabric packages you need. – Gari Singh

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

报告相同问题?

悬赏问题

  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵