exportSwarmKey icon indicating copy to clipboard operation
exportSwarmKey copied to clipboard

How to exactly run this

Open liberuum opened this issue 4 years ago • 3 comments

Hey Never used go, So, to run this, one needs to have go installed. And then, what are exactly the steps because now when running the main.go I get sth like this:

ain.go:12:2: cannot find package "github.com/ethereum/go-ethereum/crypto" in any of:
	/usr/local/go/src/github.com/ethereum/go-ethereum/crypto (from $GOROOT)

liberuum avatar Feb 17 '21 20:02 liberuum

do a 'go mod vendor' and it will install all dependency.

jmozah avatar Feb 18 '21 14:02 jmozah

I get

# github.com/karalabe/usb
../vendor/github.com/karalabe/usb/hid_enabled.go:22:10: fatal error: './hidapi/hidapi/hidapi.h' file not found
#include "./hidapi/hidapi/hidapi.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.


liberuum avatar Aug 06 '21 21:08 liberuum

please help me

ubuntu@VM-4-10-ubuntu:~/exportkey/pkg$ sudo go run main.go /var/lib/bee-clef/keystore/UTC--2022-02-*****************************************************93ad246 *************************************** ../../go/src/github.com/ethereum/go-ethereum/core/state/database.go:23:2: cannot find package "github.com/VictoriaMetrics/fastcache" in any of: /usr/lib/go-1.10/src/github.com/VictoriaMetrics/fastcache (from $GOROOT) /home/ubuntu/go/src/github.com/VictoriaMetrics/fastcache (from $GOPATH) ../../go/src/github.com/ethersphere/bee/pkg/crypto/crypto.go:15:2: cannot find package "github.com/btcsuite/btcd/btcec" in any of: /usr/lib/go-1.10/src/github.com/btcsuite/btcd/btcec (from $GOROOT) /home/ubuntu/go/src/github.com/btcsuite/btcd/btcec (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/internal/ethapi/api.go:27:2: cannot find package "github.com/davecgh/go-spew/spew" in any of: /usr/lib/go-1.10/src/github.com/davecgh/go-spew/spew (from $GOROOT) /home/ubuntu/go/src/github.com/davecgh/go-spew/spew (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/accounts/keystore/account_cache.go:30:2: cannot find package "github.com/deckarep/golang-set" in any of: /usr/lib/go-1.10/src/github.com/deckarep/golang-set (from $GOROOT) /home/ubuntu/go/src/github.com/deckarep/golang-set (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/consensus/ethash/ethash.go:36:2: cannot find package "github.com/edsrzf/mmap-go" in any of: /usr/lib/go-1.10/src/github.com/edsrzf/mmap-go (from $GOROOT) /home/ubuntu/go/src/github.com/edsrzf/mmap-go (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/accounts/scwallet/hub.go:48:2: cannot find package "github.com/gballet/go-libpcsclite" in any of: /usr/lib/go-1.10/src/github.com/gballet/go-libpcsclite (from $GOROOT) /home/ubuntu/go/src/github.com/gballet/go-libpcsclite (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/accounts/usbwallet/trezor/messages-common.pb.go:10:2: cannot find package "github.com/golang/protobuf/proto" in any of: /usr/lib/go-1.10/src/github.com/golang/protobuf/proto (from $GOROOT) /home/ubuntu/go/src/github.com/golang/protobuf/proto (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/accounts/usbwallet/trezor/messages.pb.go:11:2: cannot find package "github.com/golang/protobuf/protoc-gen-go/descriptor" in any of: /usr/lib/go-1.10/src/github.com/golang/protobuf/protoc-gen-go/descriptor (from $GOROOT) /home/ubuntu/go/src/github.com/golang/protobuf/protoc-gen-go/descriptor (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/core/rawdb/freezer_batch.go:25:2: cannot find package "github.com/golang/snappy" in any of: /usr/lib/go-1.10/src/github.com/golang/snappy (from $GOROOT) /home/ubuntu/go/src/github.com/golang/snappy (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/rpc/websocket.go:32:2: cannot find package "github.com/gorilla/websocket" in any of: /usr/lib/go-1.10/src/github.com/gorilla/websocket (from $GOROOT) /home/ubuntu/go/src/github.com/gorilla/websocket (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/core/state/database.go:29:2: cannot find package "github.com/hashicorp/golang-lru" in any of: /usr/lib/go-1.10/src/github.com/hashicorp/golang-lru (from $GOROOT) /home/ubuntu/go/src/github.com/hashicorp/golang-lru (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/consensus/ethash/ethash.go:41:2: cannot find package "github.com/hashicorp/golang-lru/simplelru" in any of: /usr/lib/go-1.10/src/github.com/hashicorp/golang-lru/simplelru (from $GOROOT) /home/ubuntu/go/src/github.com/hashicorp/golang-lru/simplelru (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/core/state/snapshot/difflayer.go:31:2: cannot find package "github.com/holiman/bloomfilter/v2" in any of: /usr/lib/go-1.10/src/github.com/holiman/bloomfilter/v2 (from $GOROOT) /home/ubuntu/go/src/github.com/holiman/bloomfilter/v2 (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/consensus/ethash/difficulty.go:23:2: cannot find package "github.com/holiman/uint256" in any of: /usr/lib/go-1.10/src/github.com/holiman/uint256 (from $GOROOT) /home/ubuntu/go/src/github.com/holiman/uint256 (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/p2p/nat/natupnp.go:27:2: cannot find package "github.com/huin/goupnp" in any of: /usr/lib/go-1.10/src/github.com/huin/goupnp (from $GOROOT) /home/ubuntu/go/src/github.com/huin/goupnp (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/p2p/nat/natupnp.go:28:2: cannot find package "github.com/huin/goupnp/dcps/internetgateway1" in any of: /usr/lib/go-1.10/src/github.com/huin/goupnp/dcps/internetgateway1 (from $GOROOT) /home/ubuntu/go/src/github.com/huin/goupnp/dcps/internetgateway1 (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/p2p/nat/natupnp.go:29:2: cannot find package "github.com/huin/goupnp/dcps/internetgateway2" in any of: /usr/lib/go-1.10/src/github.com/huin/goupnp/dcps/internetgateway2 (from $GOROOT) /home/ubuntu/go/src/github.com/huin/goupnp/dcps/internetgateway2 (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/p2p/nat/nat.go:29:2: cannot find package "github.com/jackpal/go-nat-pmp" in any of: /usr/lib/go-1.10/src/github.com/jackpal/go-nat-pmp (from $GOROOT) /home/ubuntu/go/src/github.com/jackpal/go-nat-pmp (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/accounts/usbwallet/hub.go:29:2: cannot find package "github.com/karalabe/usb" in any of: /usr/lib/go-1.10/src/github.com/karalabe/usb (from $GOROOT) /home/ubuntu/go/src/github.com/karalabe/usb (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/core/rawdb/database.go:32:2: cannot find package "github.com/olekukonko/tablewriter" in any of: /usr/lib/go-1.10/src/github.com/olekukonko/tablewriter (from $GOROOT) /home/ubuntu/go/src/github.com/olekukonko/tablewriter (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/console/prompt/prompter.go:23:2: cannot find package "github.com/peterh/liner" in any of: /usr/lib/go-1.10/src/github.com/peterh/liner (from $GOROOT) /home/ubuntu/go/src/github.com/peterh/liner (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/core/rawdb/freezer.go:34:2: cannot find package "github.com/prometheus/tsdb/fileutil" in any of: /usr/lib/go-1.10/src/github.com/prometheus/tsdb/fileutil (from $GOROOT) /home/ubuntu/go/src/github.com/prometheus/tsdb/fileutil (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/metrics/cpu_enabled.go:24:2: cannot find package "github.com/shirou/gopsutil/cpu" in any of: /usr/lib/go-1.10/src/github.com/shirou/gopsutil/cpu (from $GOROOT) /home/ubuntu/go/src/github.com/shirou/gopsutil/cpu (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/accounts/scwallet/wallet.go:43:2: cannot find package "github.com/status-im/keycard-go/derivationpath" in any of: /usr/lib/go-1.10/src/github.com/status-im/keycard-go/derivationpath (from $GOROOT) /home/ubuntu/go/src/github.com/status-im/keycard-go/derivationpath (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/ethdb/leveldb/leveldb.go:34:2: cannot find package "github.com/syndtr/goleveldb/leveldb" in any of: /usr/lib/go-1.10/src/github.com/syndtr/goleveldb/leveldb (from $GOROOT) /home/ubuntu/go/src/github.com/syndtr/goleveldb/leveldb (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/ethdb/leveldb/leveldb.go:35:2: cannot find package "github.com/syndtr/goleveldb/leveldb/errors" in any of: /usr/lib/go-1.10/src/github.com/syndtr/goleveldb/leveldb/errors (from $GOROOT) /home/ubuntu/go/src/github.com/syndtr/goleveldb/leveldb/errors (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/ethdb/leveldb/leveldb.go:36:2: cannot find package "github.com/syndtr/goleveldb/leveldb/filter" in any of: /usr/lib/go-1.10/src/github.com/syndtr/goleveldb/leveldb/filter (from $GOROOT) /home/ubuntu/go/src/github.com/syndtr/goleveldb/leveldb/filter (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/p2p/enode/nodedb.go:32:2: cannot find package "github.com/syndtr/goleveldb/leveldb/iterator" in any of: /usr/lib/go-1.10/src/github.com/syndtr/goleveldb/leveldb/iterator (from $GOROOT) /home/ubuntu/go/src/github.com/syndtr/goleveldb/leveldb/iterator (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/ethdb/leveldb/leveldb.go:37:2: cannot find package "github.com/syndtr/goleveldb/leveldb/opt" in any of: /usr/lib/go-1.10/src/github.com/syndtr/goleveldb/leveldb/opt (from $GOROOT) /home/ubuntu/go/src/github.com/syndtr/goleveldb/leveldb/opt (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/p2p/enode/nodedb.go:34:2: cannot find package "github.com/syndtr/goleveldb/leveldb/storage" in any of: /usr/lib/go-1.10/src/github.com/syndtr/goleveldb/leveldb/storage (from $GOROOT) /home/ubuntu/go/src/github.com/syndtr/goleveldb/leveldb/storage (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/ethdb/leveldb/leveldb.go:38:2: cannot find package "github.com/syndtr/goleveldb/leveldb/util" in any of: /usr/lib/go-1.10/src/github.com/syndtr/goleveldb/leveldb/util (from $GOROOT) /home/ubuntu/go/src/github.com/syndtr/goleveldb/leveldb/util (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/internal/ethapi/api.go:49:2: cannot find package "github.com/tyler-smith/go-bip39" in any of: /usr/lib/go-1.10/src/github.com/tyler-smith/go-bip39 (from $GOROOT) /home/ubuntu/go/src/github.com/tyler-smith/go-bip39 (from $GOPATH) ../../go/src/github.com/ethereum/go-ethereum/accounts/scwallet/securechannel.go:32:2: cannot find package "golang.org/x/text/unicode/norm" in any of: /usr/lib/go-1.10/src/golang.org/x/text/unicode/norm (from $GOROOT) /home/ubuntu/go/src/golang.org/x/text/unicode/norm (from $GOPATH)

zhugcx avatar Feb 01 '22 13:02 zhugcx