pandora-prime / bitcoin-pro Goto Github PK
View Code? Open in Web Editor NEWProfessional bitcoin accounts & assets management
License: GNU Affero General Public License v3.0
Professional bitcoin accounts & assets management
License: GNU Affero General Public License v3.0
I got an error after installing bitcoin-pro while following the instructions in the readme.
After the command: cargo install bitcoin-pro
I got:
error: failed to compile bitcoin-pro v0.1.0
, intermediate artifacts can be found at /tmp/cargo-installD5taeA
Caused by:
failed to select a version for the requirement zeroize = "^0.9"
candidate versions found which didn't match: 1.3.0, 1.2.0, 1.1.1, ...
location searched: crates.io index
required by package grin_secp256k1zkp v0.7.10
... which is depended on by rgb-core v0.4.0
... which is depended on by bitcoin-pro v0.1.0
When you want to open examples by clicking on [Open] above in the menu where Bitcoin-Pro titled, the window of the file explorer comes up but the files: BIP32 test vectors.bpro and RGB test.bpro are not presented. Looking directly in the file explorer they are definitely there. I'm on ubuntu 20.04
The cargo install command failed. Any ideas what to do next?
Compiling glade v0.1.0-alpha.2
error[E0554]: #![feature]
may not be used on the stable release channel
--> /home/hvancann/.cargo/registry/src/github.com-1ecc6299db9ec823/glade-0.1.0-alpha.2/src/lib.rs:15:1
|
15 | #![feature(try_trait)]
| ^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try rustc --explain E0554
.
error: could not compile glade
.
Hi I tried the docker image but sadly it failed:
Step 8/11 : RUN . $HOME/.cargo/env && cargo install bitcoin-pro
---> Running in 8ef4e0826707
Updating crates.io index
Downloading crates ...
Downloaded bitcoin-pro v0.1.0
Installing bitcoin-pro v0.1.0
error: failed to compile `bitcoin-pro v0.1.0`, intermediate artifacts can be found at `/tmp/cargo-installg6pXWn`
Caused by:
failed to select a version for the requirement `zeroize = "^0.9"`
candidate versions found which didn't match: 1.3.0, 1.2.0, 1.1.1, ...
location searched: crates.io index
required by package `grin_secp256k1zkp v0.7.10`
... which is depended on by `rgb-core v0.4.0`
... which is depended on by `bitcoin-pro v0.1.0`
maybe I miss something ?
I've tried to install on Debian 10. Following your instructions.
I get this error: "could not find export
in syn
"
In syn crate I don't see the export function: https://docs.rs/syn/1.0.64/syn/?search=syn%3A%3Aexport#functions
Hey!
I tried to install Bitcoin Pro using with cargo
:
cargo install bitcoin-pro --version 0.1.0-beta.2
But it couldn't compile rgb-core
and the installation resulted in the following errors.
Compiling lnpbp v0.3.3
Compiling rgb-core v0.3.1
error[E0599]: the method `strict_encode` exists for struct `secp256k1zkp::SecretKey`, but its trait bounds were not satisfied
--> /Users/lounesksouri/.cargo/registry/src/github.com-1ecc6299db9ec823/rgb-core-0.3.1/src/contract/value.rs:255:17
|
255 | strict_encode_list!(e; EncodingTag::U64, self.value, self.blinding),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `secp256k1zkp::SecretKey` due to unsatisfied trait bounds
|
::: /Users/lounesksouri/.cargo/registry/src/github.com-1ecc6299db9ec823/amplify-3.1.1/src/strategy.rs:86:1
|
86 | pub struct Holder<T, S>(T, PhantomData<S>);
| ------------------------------------------- doesn't satisfy `_: strict_encoding::StrictEncode`
|
::: /Users/lounesksouri/.cargo/registry/src/github.com-1ecc6299db9ec823/grin_secp256k1zkp-0.7.10/src/key.rs:34:1
|
34 | pub struct SecretKey(pub [u8; constants::SECRET_KEY_SIZE]);
| -----------------------------------------------------------
| |
| doesn't satisfy `_: strict_encoding::StrictEncode`
| doesn't satisfy `secp256k1zkp::SecretKey: strict_encoding::Strategy`
|
= note: the following trait bounds were not satisfied:
`secp256k1zkp::SecretKey: strict_encoding::Strategy`
which is required by `secp256k1zkp::SecretKey: strict_encoding::StrictEncode`
`Holder<secp256k1zkp::SecretKey, _>: strict_encoding::StrictEncode`
which is required by `secp256k1zkp::SecretKey: strict_encoding::StrictEncode`
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: the function or associated item `strict_decode` exists for struct `secp256k1zkp::SecretKey`, but its trait bounds were not satisfied
--> /Users/lounesksouri/.cargo/registry/src/github.com-1ecc6299db9ec823/rgb-core-0.3.1/src/contract/value.rs:266:47
|
266 | blinding: BlindingFactor::strict_decode(&mut d)?,
| ^^^^^^^^^^^^^ function or associated item cannot be called on `secp256k1zkp::SecretKey` due to unsatisfied trait bounds
|
::: /Users/lounesksouri/.cargo/registry/src/github.com-1ecc6299db9ec823/amplify-3.1.1/src/strategy.rs:86:1
|
86 | pub struct Holder<T, S>(T, PhantomData<S>);
| ------------------------------------------- doesn't satisfy `_: strict_encoding::StrictDecode`
|
::: /Users/lounesksouri/.cargo/registry/src/github.com-1ecc6299db9ec823/grin_secp256k1zkp-0.7.10/src/key.rs:34:1
|
34 | pub struct SecretKey(pub [u8; constants::SECRET_KEY_SIZE]);
| -----------------------------------------------------------
| |
| doesn't satisfy `_: strict_encoding::StrictDecode`
| doesn't satisfy `secp256k1zkp::SecretKey: strict_encoding::Strategy`
|
= note: the following trait bounds were not satisfied:
`secp256k1zkp::SecretKey: strict_encoding::Strategy`
which is required by `secp256k1zkp::SecretKey: strict_encoding::StrictDecode`
`Holder<secp256k1zkp::SecretKey, _>: strict_encoding::StrictDecode`
which is required by `secp256k1zkp::SecretKey: strict_encoding::StrictDecode`
`&secp256k1zkp::SecretKey: strict_encoding::Strategy`
which is required by `&secp256k1zkp::SecretKey: strict_encoding::StrictDecode`
`Holder<&secp256k1zkp::SecretKey, _>: strict_encoding::StrictDecode`
which is required by `&secp256k1zkp::SecretKey: strict_encoding::StrictDecode`
`&mut secp256k1zkp::SecretKey: strict_encoding::Strategy`
which is required by `&mut secp256k1zkp::SecretKey: strict_encoding::StrictDecode`
`Holder<&mut secp256k1zkp::SecretKey, _>: strict_encoding::StrictDecode`
which is required by `&mut secp256k1zkp::SecretKey: strict_encoding::StrictDecode`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0599`.
error: could not compile `rgb-core`
Rust version:
โ ~ rustc -V
rustc 1.52.0-nightly (35dbef235 2021-03-02)
macOS version: Big Sur 11.0.1 (latest)
Xcode and Xcode CLT: latest versions
Any ideas?
Tried installing on win10 with rustc 1.48.0 (7eac88abb 2020-11-16) 64 bit.
This hack was installed, but doesn't seem to work: sfackler/rust-openssl#1086
Used this command:
cargo install bitcoin-pro --version 0.1.0-beta.1
Got this error:
...
Compiling num_cpus v1.13.0
Compiling generic-array v0.12.3
error: failed to run custom build command for `openssl-sys v0.9.59`
Caused by:
process didn't exit successfully: `C:\Users\username\AppData\Local\Temp\cargo-install4GTSdG\release\build\openssl-sys-76e26209b26ac513\build-script-main` (exit code: 101)
--- stdout
cargo:rustc-cfg=const_fn
cargo:rerun-if-env-changed=X86_64_PC_WINDOWS_MSVC_OPENSSL_NO_VENDOR
X86_64_PC_WINDOWS_MSVC_OPENSSL_NO_VENDOR unset
cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
OPENSSL_NO_VENDOR unset
running "perl" "./Configure" "--prefix=C:\\Users\\username\\AppData\\Local\\Temp\\cargo-install4GTSdG\\release\\build\\openssl-sys-9cc6cd8da2f72785\\out\\openssl-build\\install" "no-dso" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "no-engine" "no-asm" "VC-WIN64A"
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }', C:\Users\username\.cargo\registry\src\github.com-1ecc6299db9ec823\openssl-src-111.13.0+1.1.1i\src\lib.rs:413:39
stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\std\src\panicking.rs:483
1: core::panicking::panic_fmt
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\core\src\panicking.rs:85
2: core::option::expect_none_failed
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4\/library\core\src\option.rs:1234
3: core::result::Result<T,E>::unwrap
4: openssl_src::Build::build
5: openssl_src::Build::build
6: build_script_main::find_vendored::get_openssl
7: build_script_main::env::{{closure}}
8: build_script_main::find_openssl::{{closure}}
9: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `bitcoin-pro v0.1.0-beta.1`, intermediate artifacts can be found at `C:\Users\username\AppData\Local\Temp\cargo-install4GTSdG`
Caused by:
build failed
Anyone else having the same issue?
I tried to install bitcoin-pro on mac, and the following error was reported, but I haven't found the correct solution yet! !
$cargo install bitcoin-pro
error: failed to run custom build command for cairo-sys-rs v0.10.0
Caused by:
process didn't exit successfully: /var/folders/09/sh73gzw12_z5pc7ly7rr8hpr0000gn/T/cargo-installKybB6V/release/build/cairo-sys-rs-4dcad956f648ded7/build-script-build (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=CAIRO_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=CAIRO_STATIC
cargo:rerun-if-env-changed=CAIRO_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-apple-darwin
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
--- stderr
"pkg-config" "--libs" "--cflags" "cairo" "cairo >= 1.12" did not exit successfully: exit status: 1
error: could not find system library 'cairo' required by the 'cairo-sys-rs' crate
--- stderr
Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xproto', required by 'xau', not found
warning: build failed, waiting for other jobs to finish...
error: failed to compile bitcoin-pro v0.1.2, intermediate artifacts can be found at /var/folders/09/sh73gzw12_z5pc7ly7rr8hpr0000gn/T/cargo-installKybB6V
Olga Ukolova, [Jan 18, 2022 at 6:18:40 PM]:
Hi!
...
Hi, I'm facing the following error when building:
Compiling glade v0.1.0-alpha.4
error[E0412]: cannot find type `NoneError` in module `std::option`
--> /Users/dev/.cargo/registry/src/github.com-1ecc6299db9ec823/glade-0.1.0-alpha.4/src/error.rs:22:25
|
22 | #[from(std::option::NoneError)]
| ^^^^^^^^^ not found in `std::option`
MacOS 10.14.6 Mojave
rustc 1.54.0-nightly (9111b8ae9 2021-05-26)
Trying to install bitcoin-pro, followed the instructions as mentioned:
sudo apt update (did even sudo apt upghrade)
sudo apt install -y cargo libssl-dev libzmq3-dev pkg-config g++ cmake libgtk-3-dev libsqlite3-dev
rustup install nightly
I get Compiling diesel_derives v1.4.1
error[E0432]: unresolved import syn::export
--> /home/perry/.cargo/registry/src/github.com-1ecc6299db9ec823/amplify_derive-2.3.1/src/as_any.rs:16:10
|
16 | use syn::export::TokenStream2;
| ^^^^^^ could not find export
in syn
error[E0432]: unresolved import syn::export
--> /home/perry/.cargo/registry/src/github.com-1ecc6299db9ec823/amplify_derive-2.3.1/src/display.rs:17:10
|
17 | use syn::export::{Span, TokenStream2};
| ^^^^^^ could not find export
in syn
error[E0432]: unresolved import syn::export
--> /home/perry/.cargo/registry/src/github.com-1ecc6299db9ec823/amplify_derive-2.3.1/src/error.rs:17:10
|
17 | use syn::export::TokenStream2;
| ^^^^^^ could not find export
in syn
error[E0432]: unresolved import syn::export
--> /home/perry/.cargo/registry/src/github.com-1ecc6299db9ec823/amplify_derive-2.3.1/src/from.rs:17:10
|
17 | use syn::export::{Span, TokenStream2};
| ^^^^^^ could not find export
in syn
error[E0432]: unresolved import syn::export
--> /home/perry/.cargo/registry/src/github.com-1ecc6299db9ec823/amplify_derive-2.3.1/src/getters.rs:16:10
|
16 | use syn::export::TokenStream2;
| ^^^^^^ could not find export
in syn
error[E0432]: unresolved import syn::export
--> /home/perry/.cargo/registry/src/github.com-1ecc6299db9ec823/amplify_derive-2.3.1/src/wrapper.rs:16:10
|
16 | use syn::export::{TokenStream2};
| ^^^^^^ could not find export
in syn
error[E0432]: unresolved import syn::export
--> /home/perry/.cargo/registry/src/github.com-1ecc6299db9ec823/amplify_derive-2.3.1/src/lib.rs:67:10
|
67 | use syn::export::TokenStream;
| ^^^^^^ could not find export
in syn
error: aborting due to 7 previous errors
For more information about this error, try rustc --explain E0432
.
error: could not compile amplify_derive
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile bitcoin-pro v0.1.0-beta.1
, intermediate artifacts can be found at /tmp/cargo-installocOWj4
Caused by:
build failed
Meson
Unknown profile option
CARGO
Compiling glade v0.1.0-alpha.4
error[E0412]: cannot find type NoneError
in module std::option
--> .cargo/registry/src/github.com-1ecc6299db9ec823/glade-0.1.0-alpha.4/src/error.rs:22:25
|
22 | #[from(std::option::NoneError)]
| ^^^^^^^^^ not found in std::option
error[E0554]: #![feature]
may not be used on the stable release channel
--> .cargo/registry/src/github.com-1ecc6299db9ec823/glade-0.1.0-alpha.4/src/lib.rs:15:1
|
15 | #![feature(try_trait)]
| ^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0412, E0554.
For more information about an error, try rustc --explain E0412
.
error: could not compile glade
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile bitcoin-pro v0.1.1
, intermediate artifacts can be found at /tmp/cargo-installzM8w67
Caused by:
build failed
Required to enable Windows builds: #2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.