Skip to content

Unable to run wasmtime component (Error: No such file or directory (os error 2)) #10291

Open
@tpmccallum

Description

@tpmccallum

I am compiling using the following command:

$ cargo component build --target wasm32-wasip2
  Generating bindings for compress (src/bindings.rs)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s

But when I use wasmtime I get an error:

$ wasmtime component run --env PATH=$PATH --dir . --invoke compress target/wasm32-wasip2/debug/compress.wasm
Error: No such file or directory (os error 2)

I put the source code and config in a repo so you can see everything. Super stumped on this one, would appreciate some assistance.

https://github.com/tpmccallum/testing_components/blob/main/README.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions