Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Could not compile ic-utils during cargo install icx-proxy #8

Closed
zestified opened this issue Jan 8, 2022 · 10 comments
Closed

Could not compile ic-utils during cargo install icx-proxy #8

zestified opened this issue Jan 8, 2022 · 10 comments

Comments

@zestified
Copy link

zestified commented Jan 8, 2022

Hi there! I'm getting the below error when trying to run cargo install icx-proxy.

   Compiling ic-agent v0.9.0
   Compiling ic-utils v0.7.0
error[E0277]: the trait bound `ic_agent::export::Principal: CandidType` is not satisfied
   --> /Users/phuongvu/.cargo/registry/src/github.com-1ecc6299db9ec823/ic-utils-0.7.0/src/interfaces/management_canister/builders.rs:251:42
    |
251 | impl<'agent, 'canister: 'agent, T: Sync> AsyncCall<(Principal,)>
    |                                          ^^^^^^^^^^^^^^^^^^^^^^^ the trait `CandidType` is not implemented for `ic_agent::export::Principal`
    |
    = note: required because of the requirements on the impl of `for<'de> ArgumentDecoder<'de>` for `(ic_agent::export::Principal,)`
note: required by a bound in `AsyncCall`
   --> /Users/phuongvu/.cargo/registry/src/github.com-1ecc6299db9ec823/ic-utils-0.7.0/src/call.rs:38:10
    |
36  | pub trait AsyncCall<Out>
    |           --------- required by a bound in this
37  | where
38  |     Out: for<'de> ArgumentDecoder<'de> + Send,
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AsyncCall`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `ic-utils` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `icx-proxy v0.7.0`, intermediate artifacts can be found at `/var/folders/zj/f8bhtxm522vd_js96_y2w66c0000gn/T/cargo-installauI5dz`
@dubecker
Copy link

I am getting the same error. Did you find any solution yet?

@zestified
Copy link
Author

@dubecker Sadly, I haven't.

@samlinux
Copy link

samlinux commented Feb 3, 2022

same problem on my side

@wewei
Copy link

wewei commented Feb 3, 2022

Same problem on my side.
I'm on a mbp M1 & a ubuntu 20.04.3 LTS

@ozwaldorf
Copy link

bumping this issue

@Daniel-Bloom-dfinity
Copy link
Contributor

Publishing a new version today, should resolve this issue.

@Daniel-Bloom-dfinity
Copy link
Contributor

This should now be resolved with the release of 0.8.0. Please re-open if you run into similar issues.

@Tyler-Gates
Copy link

Tyler-Gates commented Sep 9, 2022

Hey @Daniel-Bloom-dfinity, I am receiving this error while installing icx-proxy v0.8.0, issues with ic-utils v0.12.1?

dfx v0.11.2
Ubuntu 20.04.4 LTS

Compiling ic-utils v0.12.1
error[E0277]: the trait bound `ic_agent::export::Principal: CandidType` is not satisfied
   --> /home/owner/.cargo/registry/src/github.com-1ecc6299db9ec823/ic-utils-0.12.1/src/interfaces/management_canister/builders.rs:251:42
    |
251 | impl<'agent, 'canister: 'agent, T: Sync> AsyncCall<(Principal,)>
    |                                          ^^^^^^^^^^^^^^^^^^^^^^^ the trait `CandidType` is not implemented for `ic_agent::export::Principal`
    |
    = note: required because of the requirements on the impl of `for<'de> ArgumentDecoder<'de>` for `(ic_agent::export::Principal,)`
note: required by a bound in `AsyncCall`
   --> /home/owner/.cargo/registry/src/github.com-1ecc6299db9ec823/ic-utils-0.12.1/src/call.rs:38:10
    |
36  | pub trait AsyncCall<Out>
    |           --------- required by a bound in this
37  | where
38  |     Out: for<'de> ArgumentDecoder<'de> + Send,
    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AsyncCall`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `ic-utils` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `icx-proxy v0.8.0`, intermediate artifacts can be found at `/tmp/cargo-installMQN1rO`

@hilljh82
Copy link

I am getting the same issue as well with the same version(s) as pointed out in @Tyler-Gates post.

@Daniel-Bloom-dfinity
Copy link
Contributor

I've just published icx-proxy v0.10.1 with updated dependencies, which should cargo install cleanly.

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

No branches or pull requests

8 participants