dfinity / vessel

The original package manager for Motoko
Apache License 2.0
113 stars 19 forks source link

Problem on WSl2 (IC course ic-logger use vessel) #46

Closed dragon-raja closed 2 years ago

dragon-raja commented 2 years ago

when I try to dfx build --check my project It happens like that follows

Building canisters to check they build ok. Canister IDs might be hard coded. Building canisters... The build step failed for canister 'cs7ap-qc5fi-rjs6g-k5hmq' with an embedded error: The command '"vessel" "sources"' failed with exit status 'exit status: 101'. Stdout:

Stderr: thread 'main' panicked at 'called Result::unwrap() on an Err value: reqwest::Error { kind: Request, url: Url { scheme: "https", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("github.com")), port: None, path: "/dfinity/vessel-package-set/releases/download/mo-0.6.18-20220107/package-set.dhall", query: None, fragment: None }, source: TimedOut }', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/dhall-0.10.1/src/semantics/resolve/resolve.rs:295:36 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

ggreif commented 2 years ago

I suspect you have connectivity problems.

Please check if this works for you:

curl -L https://github.com/dfinity/vessel-package-set/releases/download/mo-0.6.18-20220107/package-set.dhall

It does for me...

dragon-raja commented 2 years ago

I ran the command line u gave It seems like to work well hh and it prints like that could u give me some advice to solve the problem

[ { dependencies = [] : List Text   , name = "base"   , repo = "https://github.com/dfinity/motoko-base.git"   , version = "be85b15dc9fb45b3f24d83fccd2b24c3d19bc57d"   } , { dependencies = [ "base" ]   , name = "crud"   , repo = "https://github.com/matthewhammer/motoko-crud.git"   , version = "c9bc6acbb6da81fc20d8ffec8063d9f6b4d01efd"   } , { dependencies = [ "base" ]   , name = "matchers"   , repo = "https://github.com/kritzcreek/motoko-matchers.git"   , version = "v1.2.0"   } , { dependencies = [ "base" ]   , name = "parsec"   , repo = "https://github.com/crusso/mo-parsec.git"   , version = "v1.0.0"   } , { dependencies = [ "base" ]   , name = "scc"   , repo = "https://github.com/nomeata/motoko-scc.git"   , version = "v0.1"   } , { dependencies = [ "base" ]   , name = "sha256"   , repo = "https://github.com/enzoh/motoko-sha.git"   , version = "9e2468f51ef060ae04fde8d573183191bda30189"   } , { dependencies = [ "base" ]   , name = "icip"   , repo = "https://github.com/feliciss/icip.git"   , version = "v1.2.0"   } , { dependencies = [ "base" ]   , name = "pretty"   , repo = "https://github.com/kritzcreek/motoko-pretty.git"   , version = "v0.1.0"   } , { dependencies = [ "base" ]   , name = "sha224"   , repo = "https://github.com/flyq/motoko-sha224.git"   , version = "v0.1.0"   } , { dependencies = [ "base" ]   , name = "splay"   , repo = "https://github.com/chenyan2002/motoko-splay.git"   , version = "v0.1.0"   } , { dependencies = [ "base" ]   , name = "sequence"   , repo = "https://github.com/matthewhammer/motoko-sequence.git"   , version = "v0.1.1"   } , { dependencies = [ "base" ]   , name = "base32"   , repo = "https://github.com/flyq/motoko-base32.git"   , version = "v0.1.1"   } , { dependencies = [ "base" ]   , name = "adapton"   , repo = "https://github.com/matthewhammer/motoko-adapton.git"   , version = "v0.1.1"   } ]

------------------ 原始邮件 ------------------ 发件人: "dfinity/vessel" @.>; 发送时间: 2022年3月8日(星期二) 上午6:45 @.>; @.**@.>; 主题: Re: [dfinity/vessel] Problem on WSl2 (IC course ic-logger use vessel) (Issue #46)

I suspect you have connectivity problems.

Please check if this works for you: curl -L https://github.com/dfinity/vessel-package-set/releases/download/mo-0.6.18-20220107/package-set.dhall
It does for me...

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

ggreif commented 2 years ago

If the problem with vessel persists (connection keeps timing out while curl works just fine) then I'd try to upgrade vessel to the latest release. I am not a vessel dev, just suggesting the obvious.

dragon-raja commented 2 years ago

OK, thanks for your advice, but unfortunately the vessel is the latest release

------------------ 原始邮件 ------------------ 发件人: "Gabor @.>; 发送时间: 2022年3月8日(星期二) 晚上6:27 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [dfinity/vessel] Problem on WSl2 (IC course ic-logger use vessel) (Issue #46)

If the problem with vessel persists (connection keeps timing out while curl works just fine) them I'd try to upgrade vessel to the latest release. I am not a vessel dev, just suggesting the obvious.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

dragon-raja commented 2 years ago

Finally, thanks for the answer, I finally solved the problem by configuring the windows system proxy for wsl2

ggreif commented 2 years ago

Looks like this is resolved now.