Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Meet an exception when running rust examples with buid.sh

Open
#101 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
debian, rust

Research direction

Start by rerunning ./build.sh rust with RUST_BACKTRACE=1 in the Debian Bookworm environment. Inspect crates/wasi-nn/src/witx.rs at line 45 and the openvino-sys generated functions where ie_core_create fails to load. Done means the Rust examples run without either panic and OpenVINO initializes successfully.

Written by the indexing model from the issue text.

Description

I am using a debian bookworm image. Installed openvino_2024.1.0.15008(using archive). Installed wasmtime-v21.0.1 release. Cloned latest wasi-nn repo.

Meet below exception

$ pwd
/workspace/wasi-nn
$ ./build.sh rust

...
Read graph XML, first 50 characters: <?xml version="1.0" ?>
<net name="mobilenet_v2_1.0
Read graph weights, size in bytes: 13956476
thread 'main' panicked at crates/wasi-nn/src/witx.rs:45:49:
not implemented
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

I noticed that CI uses a compiled-from-source building, So switched to a new wasmtime build-from-source

$ git clone https://github.com/bytecodealliance/wasmtime --recursive wasmtime
$ cd wasmtime
$ git checkout --track origin/release-21.0.0
$ OPENVINO_INSTALL_DIR=/opt/intel/openvino cargo build -p wasmtime-cli --features wasi-nn 

but this time the exception is still there:

Read graph XML, first 50 characters: <?xml version="1.0" ?>
<net name="mobilenet_v2_1.0
Read graph weights, size in bytes: 13956476
thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/openvino-sys-0.6.0/src/generated/functions.rs:3:1:
`openvino_c` function not loaded: `ie_core_create

Please guide me through. Thanks

Dominant language
CSS
Stars
55
Forks
37
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bytecodealliance/wasi-nn

All issues in bytecodealliance/wasi-nn

Similar issues

More Machine Learning issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.