Closed Adam-Ultra closed 8 months ago
@Adam-Ultra I tried to compile that Substream and it seems to be able to compile without any issues
Perhaps an issue with outdated versions?
$ substreams --version
substreams version dev (Commit 95496e9, Built 2023-12-08T15:36:03Z)
$ rustc --version
rustc 1.69.0 (84c898d65 2023-04-16)
$ cd antelope.trxstats
$ make
$ make gui
Hi,
Thanks for your reply. I pulled the latest substreams and also my rustc's version is slightly newer.
$ substreams --version substreams version dev (Commit 2a98793, Built 2024-03-14T19:43:13Z)
$ rustc --version rustc 1.75.0 (82e1608df 2023-12-21)
I pulled the latest commit, f0ab7aa9668657e56d21de43dbb2103ae28a7c6e, but I
still have this error
Compiling antelope_trxstats v0.1.1
(/home/adam/substream.repos/substreams-pinax/antelope.trxstats)
error[E0599]: no associated item named Unexpected
found for struct
anyhow::Error
in the current scope
--> antelope.trxstats/src/lib.rs:28:35
|
28 | .ok_or_else(|| Error::Unexpected(format!("Invalid
parameter format: {}", param)))?;
| ^^^^^^^^^^ associated item not found
in Error
error[E0599]: no associated item named Unexpected
found for struct
anyhow::Error
in the current scope
--> antelope.trxstats/src/lib.rs:31:33
|
31 | .maperr(|| Error::Unexpected(format!("Invalid param
value for key '{}'", key)))?;
| ^^^^^^^^^^ associated item not found
in Error
error[E0599]: no associated item named Unexpected
found for struct
anyhow::Error
in the current scope
--> antelope.trxstats/src/lib.rs:39:36
|
39 | _ => return Err(Error::Unexpected(format!("Unknown
parameter: '{}'", key))),
| ^^^^^^^^^^ associated item not
found in Error
For more information about this error, try rustc --explain E0599
.
error: could not compile antelope_trxstats
due to 3 previous errors
make[1]: [Makefile:10: build] Error 101
make[1]: Leaving directory
'/home/adam/substream.repos/substreams-pinax/antelope.trxstats'
make: [Makefile:3: all] Error 2
On Tue, Feb 20, 2024 at 5:44 AM Denis @.***> wrote:
@Adam-Ultra https://github.com/Adam-Ultra I tried to compile that Substream and it seems to be able to compile without any issues
Perhaps an issue with outdated versions?
$ substreams --version substreams version dev (Commit 95496e9, Built 2023-12-08T15:36:03Z)
$ rustc --version rustc 1.69.0 (84c898d65 2023-04-16)
To install & run
$ cd antelope.trxstats $ make $ make gui
— Reply to this email directly, view it on GitHub https://github.com/pinax-network/substreams/issues/34#issuecomment-1953011894, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTHCDE5PDOVF6DMN6YCFLDYUOMQXAVCNFSM6AAAAABDOTIPD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTGAYTCOBZGQ . You are receiving this because you were mentioned.Message ID: @.***>
-- http://ultra.io/ Adam Du LEAD BLOCKCHAIN dEVELOPER +61 0490009766 ultra.io
It should be using 1.69 version since that's what you have in rust-toolchain.toml
file of the workspace.
How are you building it? make build
? No issues for me either.
I just switched to rustc 1.69 but still got the same error. yes, I simply did make build.
On Fri, Mar 15, 2024 at 11:06 AM Yaro Shkvorets @.***> wrote:
It should be using 1.69 version since that's what you have in rust-toolchain.toml file of the workspace.
How are you building it? make build? No issues for me either.
— Reply to this email directly, view it on GitHub https://github.com/pinax-network/substreams/issues/34#issuecomment-1998672631, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTHCDB6HKN7VV7USEGBXULYYI3PFAVCNFSM6AAAAABDOTIPD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJYGY3TENRTGE . You are receiving this because you were mentioned.Message ID: @.***>
-- http://ultra.io/ Adam Du LEAD BLOCKCHAIN dEVELOPER +61 0490009766 ultra.io
I'm on ubuntu 22.04
On Fri, Mar 15, 2024 at 2:06 PM BeiBei DU @.***> wrote:
I just switched to rustc 1.69 but still got the same error. yes, I simply did make build.
On Fri, Mar 15, 2024 at 11:06 AM Yaro Shkvorets @.***> wrote:
It should be using 1.69 version since that's what you have in rust-toolchain.toml file of the workspace.
How are you building it? make build? No issues for me either.
— Reply to this email directly, view it on GitHub https://github.com/pinax-network/substreams/issues/34#issuecomment-1998672631, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTHCDB6HKN7VV7USEGBXULYYI3PFAVCNFSM6AAAAABDOTIPD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJYGY3TENRTGE . You are receiving this because you were mentioned.Message ID: @.***>
-- http://ultra.io/ Adam Du LEAD BLOCKCHAIN dEVELOPER +61 0490009766 ultra.io
-- http://ultra.io/ Adam Du LEAD BLOCKCHAIN dEVELOPER +61 0490009766 ultra.io
Some kind of conflict between anyhow::Error
and substreams::errors::Error
that happens only on Ubuntu for some reason. There is the same error in our github actions build: https://github.com/pinax-network/substreams/actions/runs/8291210585/job/22690546693
Will investigate.
@Adam-Ultra that should be fixed. Feel free to re-open this issue if you still have issues.
yeah, I confirmed it's fixed. Thanks!
On Sun, Mar 17, 2024 at 12:15 PM Yaro Shkvorets @.***> wrote:
@Adam-Ultra https://github.com/Adam-Ultra that should be fixed. Feel free to re-open this issue if you still have issues.
— Reply to this email directly, view it on GitHub https://github.com/pinax-network/substreams/issues/34#issuecomment-2002224522, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTHCDCK5CG7WLUQTYQBPQTYYTVEHAVCNFSM6AAAAABDOTIPD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBSGIZDINJSGI . You are receiving this because you were mentioned.Message ID: @.***>
-- http://ultra.io/ Adam Du LEAD BLOCKCHAIN dEVELOPER +61 0490009766 ultra.io