Error in HyperLedger Fabric ChainCode

Error in HyperLedger Fabric ChainCode
Error in HyperLedger Fabric ChainCode
Error in HyperLedger Fabric ChainCode
Error in HyperLedger Fabric ChainCode
Error in HyperLedger Fabric ChainCode

Error in HyperLedger , While running ChainCode you may get many errors here are few errors you get while running ChainCode Application and their solutions

While Building Application you get error in HyperLedger

can’t load package: /usr/local/go/src/sacc/sacc.go:6:2: non-standard import “github.com/hyperledger/fabric/core/chaincode/shim” in standard package “sacc”

This happens when the $GOPATH directory is not rightly set. To remove the error just make sure the $GOPATH is rightly set.

Solution to Problem is to set the $GOPATH Variable using below commands

export GOPATH=$HOME/go

Leave a Reply

Your email address will not be published. Required fields are marked *