Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occuring error when executing ./startFabric.sh #5

Open
RookieLinLucy666 opened this issue Nov 7, 2019 · 2 comments
Open

Occuring error when executing ./startFabric.sh #5

RookieLinLucy666 opened this issue Nov 7, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@RookieLinLucy666
Copy link

  • Error description:
Error: error getting chaincode code user-chaincode: error getting chaincode package bytes: Error obtaining dependencies for github.com/oraclize/fabric-api: command <go list -f {{ join .Deps "\n"}} github.com/oraclize/fabric-api>: failed with error: "exit status 1"
can't load package: package github.com/oraclize/fabric-api: cannot find package "github.com/oraclize/fabric-api" in any of:
	/opt/go/src/github.com/oraclize/fabric-api (from $GOROOT)
	/opt/gopath/src/github.com/oraclize/fabric-api (from $GOPATH)
  • Environment:
    ubuntu 16.04 TLS
    Docker version 19.03.2, build 6a30dfc
    docker-compose version 1.24.1, build 4667896b
    go version go1.13.4 linux/amd64
    git version 2.7.4
    node version v4.2.6

  • go env

    GOPATH="/home/ubuntu/go"
    GOROOT="/usr/local/go"
    

And i find that fabric-api has been my gopath directory.

I'm looking forward for your suggestions.

@riccardopersiani riccardopersiani self-assigned this Nov 7, 2019
@riccardopersiani riccardopersiani added the bug Something isn't working label Nov 7, 2019
@riccardopersiani
Copy link
Contributor

@RookieLinLucy666 This link github.com/oraclize/fabric-api does not exist any more after our rebranding, it should be github.com/provable-things/fabric-api.

Looking forward to fix it.

@RookieLinLucy666
Copy link
Author

Sorry, it couldn't fix this error. I altered the package in the user-chaincode.go , and reoperated the go get github.com/provable-things/fabric-api. This problem still exists.

Error: error getting chaincode code user-chaincode: error getting chaincode package bytes: Error obtaining dependencies for github.com/provable-things/fabric-api: command <go list -f {{ join .Deps "\n"}} github.com/provable-things/fabric-api>: failed with error: "exit status 1"
can't load package: package github.com/provable-things/fabric-api: cannot find package "github.com/provable-things/fabric-api" in any of:
	/opt/go/src/github.com/provable-things/fabric-api (from $GOROOT)
	/opt/gopath/src/github.com/provable-things/fabric-api (from $GOPATH)

And i found that something wronged when removing images in ./startFabric.sh. Maybe the documentary forgot to write something?

Ps: I'm sure that the Fabric Network can start successfully.

Error: No such image: dev-peer0.org1.example.com-oraclize-connector-1.0-7765c3fb5c4224a4a2784d8a64a5488e570d39940695306f78f8e54009d89102
Error: No such image: dev-peer0.org1.example.com-user-chaincode-1.0-58b4cc4747da6f30d7cb2cea6511560c9fdad78c58ba6881b33801a2d69aebae

Looking forward to your suggestion. Thank you~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants