Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors with compilation #1

Open
sdotz opened this issue Nov 7, 2024 · 1 comment
Open

Errors with compilation #1

sdotz opened this issue Nov 7, 2024 · 1 comment

Comments

@sdotz
Copy link

sdotz commented Nov 7, 2024

I'm encountering some errors when building the project with cargo build -r
I'd like to get this working and check it out but Im not familiar with rust. Any help getting it working would be appreciated!

error[E0583]: file not found for module `logs`
 --> src/extraction/mod.rs:3:1
  |
3 | pub mod logs;
  | ^^^^^^^^^^^^^
  |
  = help: to create the module `logs`, create file "src/extraction/logs.rs" or "src/extraction/logs/mod.rs"
  = note: if there is a `mod logs` elsewhere in the crate already, import it with `use crate::...` instead

error[E0432]: unresolved imports `crate::extraction::logs::get_all_logs`, `crate::extraction::logs::get_transfer_from_logs`, `crate::extraction::logs::get_transfer_logs`
 --> src/extraction/extract.rs:5:16
  |
5 |         logs::{get_all_logs, get_transfer_from_logs, get_transfer_logs},
  |                ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^ no `get_transfer_logs` in `extraction::logs`
  |                |             |
  |                |             no `get_transfer_from_logs` in `extraction::logs`
  |                no `get_all_logs` in `extraction::logs`

error[E0432]: unresolved import `crate::extraction::logs::get_transfer_from_logs`
 --> src/extraction/stream.rs:7:5
  |
7 |     extraction::logs::get_transfer_from_logs,
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `get_transfer_from_logs` in `extraction::logs`

error[E0282]: type annotations needed
   --> src/extraction/extract.rs:108:17
    |
108 |                 tokio::join!(block_data, get_transfer_logs(block, c), traces)
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
    |
    = note: this error originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `poll` found for struct `Pin<_>` in the current scope
   --> src/extraction/extract.rs:108:17
    |
108 |                 tokio::join!(block_data, get_transfer_logs(block, c), traces)
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Pin<_>`
    |
    = note: this error originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `take_output` found for struct `Pin<_>` in the current scope
   --> src/extraction/extract.rs:108:17
    |
108 |                 tokio::join!(block_data, get_transfer_logs(block, c), traces)
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Pin<_>`
    |
    = note: this error originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0282]: type annotations needed
   --> src/extraction/extract.rs:110:17
    |
110 |                 tokio::join!(block_data, get_all_logs(block, c), traces)
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type
    |
    = note: this error originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `poll` found for struct `Pin<_>` in the current scope
   --> src/extraction/extract.rs:110:17
    |
110 |                 tokio::join!(block_data, get_all_logs(block, c), traces)
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Pin<_>`
    |
    = note: this error originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `take_output` found for struct `Pin<_>` in the current scope
   --> src/extraction/extract.rs:110:17
    |
110 |                 tokio::join!(block_data, get_all_logs(block, c), traces)
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Pin<_>`
    |
    = note: this error originates in the macro `$crate::join` which comes from the expansion of the macro `tokio::join` (in Nightly builds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0282, E0432, E0583, E0599.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `eth2dgraph` (bin "eth2dgraph") due to 11 previous errors
@davideaimar
Copy link
Owner

Hi! Thanks for raising the issue. There was a problem in this repo as a file was not committed. You can try to pull master and build again now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants