Skip to content

Error in HyperLedger Fabric ChainCode

Solved. Error in HyperLedger Code Fabric ChainCode.This error occurs in first time installation. If you face please free to contact Techaroha.

SBShailendra Bramhvanshi1 min read
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

SB

Written by

Shailendra Bramhvanshi

Techaroha Solutions

Have a project in mind?

Tell us what you’re building. We’ll get back to you with clear next steps.