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

installation issue #3

Open
mjrider opened this issue Jun 9, 2016 · 10 comments
Open

installation issue #3

mjrider opened this issue Jun 9, 2016 · 10 comments

Comments

@mjrider
Copy link

mjrider commented Jun 9, 2016

after running the last step, i get this error

~/gocode/src/github.com/whyrusleeping/ipns-pub$ go install
../../ipfs/go-ipfs/routing/routing.go:8:2: cannot find package "gx/ipfs/QmQGwpJy9P4yXZySmqkZEXCmbBpJUb8xntCv8Ca4taZwDC/go-libp2p-peer" in any of:
/home/vagrant/go/src/gx/ipfs/QmQGwpJy9P4yXZySmqkZEXCmbBpJUb8xntCv8Ca4taZwDC/go-libp2p-peer (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmQGwpJy9P4yXZySmqkZEXCmbBpJUb8xntCv8Ca4taZwDC/go-libp2p-peer (from $GOPATH)
../../ipfs/go-ipfs/routing/routing.go:9:2: cannot find package "gx/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto" in any of:
/home/vagrant/go/src/gx/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmUEUu1CM8bxBJxc3ZLojAi8evhTr4byQogWstABet79oY/go-libp2p-crypto (from $GOPATH)
../../ipfs/go-ipfs/routing/dht/records.go:12:2: cannot find package "gx/ipfs/QmX6DhWrpBB5NtadXmPSXYNdVvuLfJXoFNMvUMoVvP5UJa/go-context/frac" in any of:
/home/vagrant/go/src/gx/ipfs/QmX6DhWrpBB5NtadXmPSXYNdVvuLfJXoFNMvUMoVvP5UJa/go-context/frac (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmX6DhWrpBB5NtadXmPSXYNdVvuLfJXoFNMvUMoVvP5UJa/go-context/frac (from $GOPATH)
../../ipfs/go-ipfs/routing/dht/dht_net.go:9:2: cannot find package "gx/ipfs/QmX6DhWrpBB5NtadXmPSXYNdVvuLfJXoFNMvUMoVvP5UJa/go-context/io" in any of:
/home/vagrant/go/src/gx/ipfs/QmX6DhWrpBB5NtadXmPSXYNdVvuLfJXoFNMvUMoVvP5UJa/go-context/io (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmX6DhWrpBB5NtadXmPSXYNdVvuLfJXoFNMvUMoVvP5UJa/go-context/io (from $GOPATH)
../../ipfs/go-ipfs/routing/dht/dht.go:23:2: cannot find package "gx/ipfs/QmXJBB9U6e6ennAJPzk8E2rSaVGuHVR2jCxE9H9gPDtRrq/go-libp2p/p2p/host" in any of:
/home/vagrant/go/src/gx/ipfs/QmXJBB9U6e6ennAJPzk8E2rSaVGuHVR2jCxE9H9gPDtRrq/go-libp2p/p2p/host (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmXJBB9U6e6ennAJPzk8E2rSaVGuHVR2jCxE9H9gPDtRrq/go-libp2p/p2p/host (from $GOPATH)
../../ipfs/go-ipfs/routing/dht/pb/message.go:8:2: cannot find package "gx/ipfs/QmXJBB9U6e6ennAJPzk8E2rSaVGuHVR2jCxE9H9gPDtRrq/go-libp2p/p2p/net" in any of:
/home/vagrant/go/src/gx/ipfs/QmXJBB9U6e6ennAJPzk8E2rSaVGuHVR2jCxE9H9gPDtRrq/go-libp2p/p2p/net (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmXJBB9U6e6ennAJPzk8E2rSaVGuHVR2jCxE9H9gPDtRrq/go-libp2p/p2p/net (from $GOPATH)
../../ipfs/go-ipfs/routing/dht/dht.go:24:2: cannot find package "gx/ipfs/QmXJBB9U6e6ennAJPzk8E2rSaVGuHVR2jCxE9H9gPDtRrq/go-libp2p/p2p/protocol" in any of:
/home/vagrant/go/src/gx/ipfs/QmXJBB9U6e6ennAJPzk8E2rSaVGuHVR2jCxE9H9gPDtRrq/go-libp2p/p2p/protocol (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmXJBB9U6e6ennAJPzk8E2rSaVGuHVR2jCxE9H9gPDtRrq/go-libp2p/p2p/protocol (from $GOPATH)
../../ipfs/go-ipfs/namesys/proquint.go:7:2: cannot find package "gx/ipfs/QmYnf27kzqR2cxt6LFZdrAFJuQd6785fTkBvMuEj9EeRxM/proquint" in any of:
/home/vagrant/go/src/gx/ipfs/QmYnf27kzqR2cxt6LFZdrAFJuQd6785fTkBvMuEj9EeRxM/proquint (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmYnf27kzqR2cxt6LFZdrAFJuQd6785fTkBvMuEj9EeRxM/proquint (from $GOPATH)
../../ipfs/go-ipfs/routing/dht/pb/message.go:4:2: cannot find package "gx/ipfs/QmYzDkkgAEmrcNzFCiYo6L1dTX4EAG1gZkbtdbd9trL4vd/go-multiaddr" in any of:
/home/vagrant/go/src/gx/ipfs/QmYzDkkgAEmrcNzFCiYo6L1dTX4EAG1gZkbtdbd9trL4vd/go-multiaddr (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmYzDkkgAEmrcNzFCiYo6L1dTX4EAG1gZkbtdbd9trL4vd/go-multiaddr (from $GOPATH)
../../ipfs/go-ipfs/routing/routing.go:10:2: cannot find package "gx/ipfs/QmZ62t46e9p7vMYqCmptwQC1RhRv5cpQ5cwoqYspedaXyq/go-libp2p-peerstore" in any of:
/home/vagrant/go/src/gx/ipfs/QmZ62t46e9p7vMYqCmptwQC1RhRv5cpQ5cwoqYspedaXyq/go-libp2p-peerstore (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmZ62t46e9p7vMYqCmptwQC1RhRv5cpQ5cwoqYspedaXyq/go-libp2p-peerstore (from $GOPATH)
../../ipfs/go-ipfs/routing/dht/query.go:16:2: cannot find package "gx/ipfs/QmZ62t46e9p7vMYqCmptwQC1RhRv5cpQ5cwoqYspedaXyq/go-libp2p-peerstore/queue" in any of:
/home/vagrant/go/src/gx/ipfs/QmZ62t46e9p7vMYqCmptwQC1RhRv5cpQ5cwoqYspedaXyq/go-libp2p-peerstore/queue (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmZ62t46e9p7vMYqCmptwQC1RhRv5cpQ5cwoqYspedaXyq/go-libp2p-peerstore/queue (from $GOPATH)
../../ipfs/go-ipfs/blocks/blockstore/blockstore.go:17:2: cannot find package "gx/ipfs/QmaDNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8/go-log" in any of:
/home/vagrant/go/src/gx/ipfs/QmaDNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8/go-log (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmaDNZ4QMdBdku1YZWBysufYyoQt1negQGNav6PLYarbY8/go-log (from $GOPATH)
../../ipfs/go-ipfs/Godeps/_workspace/src/github.com/ipfs/go-datastore/key.go:7:2: cannot find package "gx/ipfs/QmcyaFHbyiZfoX5GTpcqqCPYmbjYNAhRDekXSJPFHdYNSV/go.uuid" in any of:
/home/vagrant/go/src/gx/ipfs/QmcyaFHbyiZfoX5GTpcqqCPYmbjYNAhRDekXSJPFHdYNSV/go.uuid (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmcyaFHbyiZfoX5GTpcqqCPYmbjYNAhRDekXSJPFHdYNSV/go.uuid (from $GOPATH)
../../ipfs/go-ipfs/blocks/bloom/filter.go:9:2: cannot find package "gx/ipfs/QmeWQMDa5dSdP4n8WDeoY5z8L2EKVqF4ZvK4VEHsLqXsGu/hamming" in any of:
/home/vagrant/go/src/gx/ipfs/QmeWQMDa5dSdP4n8WDeoY5z8L2EKVqF4ZvK4VEHsLqXsGu/hamming (from $GOROOT)
/home/vagrant/gocode/src/gx/ipfs/QmeWQMDa5dSdP4n8WDeoY5z8L2EKVqF4ZvK4VEHsLqXsGu/hamming (from $GOPATH)

reproduction:

  • clean debian jessie vagrant box
  • install go from golang website (go version go1.6.2 linux/amd64)
  • install gx and go-gx
  • go get -d github.com/whyrusleeping/ipns-pub
    this step gives errors about libraries which could not be downloaded from gx/ipfs/.....
  • go install
    gives the error above
@whyrusleeping
Copy link
Owner

Sorry about this! i've not paid a lot of attention to this and changes in the go-ipfs repo have caused issues here.

I pushed a new commit here that should help.

First, clone down go-ipfs into its proper place in the GOPATH, and run make install on it, then clone this one down and run go build in it. It should work...

I'm working on making it work every time, but since this depends on go-ipfs and go-ipfs is still between godeps and gx for its dependency management (we're actively fixing this: ipfs/kubo#2825 ipfs/kubo#2757 ipfs/kubo#2736 ipfs/kubo#2733), its messy to import go-ipfs code directly right now.

@mjrider
Copy link
Author

mjrider commented Jun 11, 2016

that seems to have fixed it

@ghost ghost mentioned this issue Aug 27, 2016
@r14c
Copy link

r14c commented Oct 25, 2016

installation is broken again with the latest version of go-ipfs

@whyrusleeping
Copy link
Owner

@tokyo-jesus working on fixing now. Should be able to fix it for good this time by vendoring everything with gx

@whyrusleeping
Copy link
Owner

Alright, its fully vendored now. This shouldnt break anymore.

@devilseye
Copy link

Hello, I have an error while getting ipns-pub:
$ go get -d github.com/whyrusleeping/ipns-pub
package gx/ipfs/QmPGpCi2W5SuzbYJE3NwuMtb95MPataUxuejYW1NLNr6sj/go-ipfs/namesys: unrecognized import path "gx/ipfs/QmPGpCi2W5SuzbYJE3NwuMtb95MPataUxuejYW1NLNr6sj/go-ipfs/namesys" (import path does not begin with hostname)
package gx/ipfs/QmPGpCi2W5SuzbYJE3NwuMtb95MPataUxuejYW1NLNr6sj/go-ipfs/path: unrecognized import path "gx/ipfs/QmPGpCi2W5SuzbYJE3NwuMtb95MPataUxuejYW1NLNr6sj/go-ipfs/path" (import path does not begin with hostname)
package gx/ipfs/QmPGpCi2W5SuzbYJE3NwuMtb95MPataUxuejYW1NLNr6sj/go-ipfs/repo: unrecognized import path "gx/ipfs/QmPGpCi2W5SuzbYJE3NwuMtb95MPataUxuejYW1NLNr6sj/go-ipfs/repo" (import path does not begin with hostname)
package gx/ipfs/QmPGpCi2W5SuzbYJE3NwuMtb95MPataUxuejYW1NLNr6sj/go-ipfs/thirdparty/ipfsaddr: unrecognized import path "gx/ipfs/QmPGpCi2W5SuzbYJE3NwuMtb95MPataUxuejYW1NLNr6sj/go-ipfs/thirdparty/ipfsaddr" (import path does not begin with hostname)
package gx/ipfs/QmUAQaWbKxGCUTuoQVvvicbQNZ9APF5pDGWyAZSe93AtKH/go-multiaddr: unrecognized import path "gx/ipfs/QmUAQaWbKxGCUTuoQVvvicbQNZ9APF5pDGWyAZSe93AtKH/go-multiaddr" (import path does not begin with hostname)
package gx/ipfs/QmWHiyk5y2EKgxHogFJ4Zt1xTqKeVsBc4zcBke8ie9C2Bn/go-libp2p-kad-dht: unrecognized import path "gx/ipfs/QmWHiyk5y2EKgxHogFJ4Zt1xTqKeVsBc4zcBke8ie9C2Bn/go-libp2p-kad-dht" (import path does not begin with hostname)
package gx/ipfs/QmWpTXhTkpoCDEm9twJd5Rc9jFwy61emzxneeJzrVMfjGF/go-libp2p-metrics: unrecognized import path "gx/ipfs/QmWpTXhTkpoCDEm9twJd5Rc9jFwy61emzxneeJzrVMfjGF/go-libp2p-metrics" (import path does not begin with hostname)
package gx/ipfs/QmXXCcQ7CLg5a81Ui9TTR35QcR4y7ZyihxwfjqaHfUVcVo/go-libp2p-peerstore: unrecognized import path "gx/ipfs/QmXXCcQ7CLg5a81Ui9TTR35QcR4y7ZyihxwfjqaHfUVcVo/go-libp2p-peerstore" (import path does not begin with hostname)
package gx/ipfs/QmbzuUusHqaLLoNTDEVLcSF6vZDHZDLPC7p4bztRvvkXxU/go-datastore: unrecognized import path "gx/ipfs/QmbzuUusHqaLLoNTDEVLcSF6vZDHZDLPC7p4bztRvvkXxU/go-datastore" (import path does not begin with hostname)
package gx/ipfs/QmcRa2qn6iCmap9bjp8jAwkvYAq13AUfxdY3rrYiaJbLum/go-libp2p/p2p/host/basic: unrecognized import path "gx/ipfs/QmcRa2qn6iCmap9bjp8jAwkvYAq13AUfxdY3rrYiaJbLum/go-libp2p/p2p/host/basic" (import path does not begin with hostname)
package gx/ipfs/QmeAfPWBWDQq9qjQ5oiWhaFs7oEsfB6FyEj5VxNdc2r34q/go-libp2p-swarm: unrecognized import path "gx/ipfs/QmeAfPWBWDQq9qjQ5oiWhaFs7oEsfB6FyEj5VxNdc2r34q/go-libp2p-swarm" (import path does not begin with hostname)
package gx/ipfs/QmfMmLGoKzCHDN7cGgk64PJr4iipzidDRME8HABSJqvmhC/go-libp2p-peer: unrecognized import path "gx/ipfs/QmfMmLGoKzCHDN7cGgk64PJr4iipzidDRME8HABSJqvmhC/go-libp2p-peer" (import path does not begin with hostname)
package gx/ipfs/QmfWDLQjGjVe4fr5CoztYW2DYYjRysMJrFe1RCsXLPTf46/go-libp2p-crypto: unrecognized import path "gx/ipfs/QmfWDLQjGjVe4fr5CoztYW2DYYjRysMJrFe1RCsXLPTf46/go-libp2p-crypto" (import path does not begin with hostname)

Can you help me with this problem, please?

@celeduc
Copy link

celeduc commented Feb 12, 2017

This is still broken as of 2017-02-12:

  • go version go1.7.5 linux/amd64
  • go-ipfs version 0.4.4

@whyrusleeping
Copy link
Owner

Now that ipfs 0.4.5 is released, you are able to create multiple named keys through the ipfs key subcommand, and then use those to publish ipns names with ipfs name publish -k

@celeduc
Copy link

celeduc commented Feb 12, 2017

I didn't see that it had been released. https://ipfs.io/docs/install/ still links to 0.4.4.

@celeduc
Copy link

celeduc commented Feb 12, 2017

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants