You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to built this demo from @whyrusleeping I run into this error. I'm not sure if it is a bug or misconf on my side.
./main.go:33:35: cannot use host (type "gx/ipfs/QmWPKovoJxF2bfiYLQK6xPeFvMJW8hX6RFRuA9bv6cURha/go-libp2p-host".Host) as type "github.com/libp2p/go-libp2p-host".Host in argument to floodsub.NewFloodSub:
"gx/ipfs/QmWPKovoJxF2bfiYLQK6xPeFvMJW8hX6RFRuA9bv6cURha/go-libp2p-host".Host does not implement "github.com/libp2p/go-libp2p-host".Host (wrong type for Addrs method)
have Addrs() []"gx/ipfs/QmWWQ2Txc2c6tqjsBpzg5Ar652cHPGNsQQp2SejkNmkUMb/go-multiaddr".Multiaddr
want Addrs() []"github.com/multiformats/go-multiaddr".Multiaddr
./main.go:39:25: cannot use host (type "gx/ipfs/QmWPKovoJxF2bfiYLQK6xPeFvMJW8hX6RFRuA9bv6cURha/go-libp2p-host".Host) as type "github.com/libp2p/go-libp2p-host".Host in argument to dht.NewDHTClient:
"gx/ipfs/QmWPKovoJxF2bfiYLQK6xPeFvMJW8hX6RFRuA9bv6cURha/go-libp2p-host".Host does not implement "github.com/libp2p/go-libp2p-host".Host (wrong type for Addrs method)
have Addrs() []"gx/ipfs/QmWWQ2Txc2c6tqjsBpzg5Ar652cHPGNsQQp2SejkNmkUMb/go-multiaddr".Multiaddr
want Addrs() []"github.com/multiformats/go-multiaddr".Multiaddr
./main.go:57:31: cannot use *pinfo (type "github.com/libp2p/go-libp2p-peerstore".PeerInfo) as type "gx/ipfs/QmXauCuJzmzapetmC6W4TuDJLL1yFFrVzSHoWv8YdbmnxH/go-libp2p-peerstore".PeerInfo in argument to host.Connect
I looked at the chat app demo in the examples and that one used mostly GX imports instead of github imports, maybe a mismatch is the cause of error?
Does anyone know why this is happening or how to fix it?
Thank you in advance
The text was updated successfully, but these errors were encountered:
agahEbrahimi
changed the title
GX/Go Package Error
GX/Go Package Error when building
Apr 19, 2018
Hi,
When I try to built this demo from @whyrusleeping I run into this error. I'm not sure if it is a bug or misconf on my side.
I looked at the chat app demo in the examples and that one used mostly GX imports instead of github imports, maybe a mismatch is the cause of error?
Does anyone know why this is happening or how to fix it?
Thank you in advance
The text was updated successfully, but these errors were encountered: