miguelmota / go-ethereum-hdwallet

Ethereum HD Wallet derivations in Go (golang)
https://github.com/miguelmota/go-ethereum-hdwallet
MIT License
494 stars 270 forks source link

installation mac os. issue #11

Closed nickbrave777 closed 3 years ago

nickbrave777 commented 3 years ago

Im getting an error while installing:

robert@Roberts-MacBook-Air gocourse % go get -u github.com/miguelmota/go-ethereum-hdwallet github.com/miguelmota/go-ethereum-hdwallet ../src/github.com/miguelmota/go-ethereum-hdwallet/hdwallet.go:494:17: key.Child undefined (type *hdkeychain.ExtendedKey has no field or method Child)

zhaorui20005 commented 3 years ago

Have you solved this yet? I got the same in mac.

ahyuen75 commented 3 years ago

same issue on Mac M1

nickbrave777 commented 3 years ago

Just update your go version, I used. go version go1.16beta1 darwin/amd64

zhaorui20005 commented 3 years ago

Just update your go version, I used. go version go1.16beta1 darwin/amd64

Thanks.But I run brew update and brew upgrade go, only updated my go from 1.15.6 to 1.15.7. And I still got the same msg when I import "github.com/miguelmota/go-ethereum-hdwallet" to run my own go program. But I can run go test in go-ethereum-hdwallet dir to run the test without errors.

miguelmota commented 3 years ago

You may try installing latest Go from binary release:

wget https://golang.org/dl/go1.16.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.16.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
miguelmota commented 3 years ago

Latest version of library should work now since vendor packages have been updated.

Screen Shot 2021-03-19 at 3 09 15 PM