You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using PyO3 and maturin to prototype a project, in which I'd like to load a plugin, a .so file. When I use maturin develop or maturin develop -r to build and deploy the wheel, it works well and can print the count 1 and the name wasi_nn of the plugin library in the Python environment. When I use maturin build, however, it seems to not "find" the plugin library, printing the count 0. I did the test in CentOS Linux release 7.9.2009 (Core). Even though I did some investigations on it, I failed to find a way to solve it. Does anyone know what causes the issue and how to fix it? Thanks a lot!
The steps to reproduce the issue:
Git clone test code
Git clone test code and put it into a directory named, for example, workspace:
cd workspace
git clone https://github.com/apepkuss/load_plugin.git
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi guys,
I am using
PyO3
andmaturin
to prototype a project, in which I'd like to load a plugin, a.so
file. When I usematurin develop
ormaturin develop -r
to build and deploy the wheel, it works well and can print the count1
and the namewasi_nn
of the plugin library in the Python environment. When I usematurin build
, however, it seems to not "find" the plugin library, printing the count0
. I did the test inCentOS Linux release 7.9.2009 (Core)
. Even though I did some investigations on it, I failed to find a way to solve it. Does anyone know what causes the issue and how to fix it? Thanks a lot!The steps to reproduce the issue:
Git clone test code
Git clone test code and put it into a directory named, for example,
workspace
:cd workspace git clone https://github.com/apepkuss/load_plugin.git
Docker pull
wasmedge/wasmedge:manylinux2014_x86_64
The steps below are run in the docker container:
Download library file
In the docker container, download and unzip the library file:
Install WasmEdge Runtime
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- -v 0.13.5
Set up Python environment
Create a virtual environment
Install dependencies
Build with
maturin develop
Build
Test
Build with
maturin build
(Failed)Uninstall the
load_plugin
package if there is one installed# uninstall `load_plugin` installed by `maturin develop` pip uninstall load_plugin
maturin build
theload_plugin
wheel:Install the wheel
Test
Beta Was this translation helpful? Give feedback.
All reactions