error: failed to select a version for the requirement `aes = "^0.2"`
Opened this issue · 2 comments
Hi,
I'm trying to compile zec paper wallet from code but it's keep giving me error for aes
dependency. I checked on https://crates.io/crates/aes/versions which shows the specific version of aes
which is used at git hash of librustzcash
dependency got deleted about 3 years ago.
I'm not a rust native programmer. Can you please help fix this issue?
Would very much appreciate your help on it.
Thanks
Satinder
Her the log trying to compile zecpaperwallet as of current state:
➜ Downloads git clone https://github.com/adityapk00/zecpaperwallet.git
Cloning into 'zecpaperwallet'...
remote: Enumerating objects: 768, done.
remote: Total 768 (delta 0), reused 0 (delta 0), pack-reused 768
Receiving objects: 100% (768/768), 523.41 KiB | 933.00 KiB/s, done.
Resolving deltas: 100% (413/413), done.
➜ Downloads cd zecpaperwallet/cli
➜ cli git:(master) cargo build --release
Updating crates.io index
Updating git repository `https://github.com/zcash/librustzcash`
error: failed to select a version for the requirement `aes = "^0.2"`
candidate versions found which didn't match: 0.8.1, 0.8.0, 0.7.5, ...
location searched: crates.io index
required by package `zcash_primitives v0.0.0 (https://github.com/zcash/librustzcash?rev=5a48d179b8434a0318e7e19dda506e245a904092#5a48d179)`
... which satisfies git dependency `zcash_primitives` of package `zecpaperlib v0.1.0 (/Users/satinder/Downloads/zecpaperwallet/lib)`
... which satisfies path dependency `zecpaperlib` of package `zecpaperwallet v0.1.0 (/Users/satinder/Downloads/zecpaperwallet/cli)`
➜ cli git:(master)
I ran into the same error. For now the only thing i can add is that i was able to make it work by downloading the binaries https://zecwallet.co/paper.html#download for linux.
alfredo@spaceship:~/zecpaperwallet/linux-zecpaperwallet-v1.2$ ./zecpaperwallet --help
zecpaperwaller 1.2
A command line Zcash Sapling paper wallet generator
USAGE:
zecpaperwallet [FLAGS] [OPTIONS] [output]
FLAGS:
-h, --help Prints help information
-n, --nohd Don't reuse HD keys. Normally, zecpaperwallet will use the same HD key to derive multiple
addresses. This flag will use a new seed for each address
--testnet Generate Testnet addresses
-V, --version Prints version information
OPTIONS:
-e, --entropy <entropy> Provide additional entropy to the random number generator. Any random string,
containing 32-64 characters
-f, --format <FORMAT> What format to generate the output in [default: json] [possible values: pdf, json]
-t, --taddrs <t_addresses> Numbe rof T addresses to generate [default: 0]
--threads <threads> Number of threads to use for the vanity address generator. Set this to the number of
CPUs you have [default: 1]
--vanity <vanity_prefix> Generate a vanity address with the given prefix
-z, --zaddrs <z_addresses> Number of Z addresses (Sapling) to generate [default: 1]
ARGS:
<output> Name of output file.
alfredo@spaceship:~/zecpaperwallet/linux-zecpaperwallet-v1.2$
I made some fixes to at least be able to build and run the cli tool #18 (pdf generation is not working)