Open su3 opened 2 months ago
I'm having the same issues, just different imported modules can't be found.
Okay, I think I found an issue. If you have some dependencies make sure you running compilation from the same env. In my case, I had venv in one place, but because of requirement to run py2wasm from python 11 I decided to separately call it outside venv. And that resulted that none of the dependencies were found. After I resetup whole venv with python 11 and launched compilation from this venv (with all installed dependencies) compilation now found a lot of files
Nuitka-Scons: Backend linking program with 1842 files (no progress information available for this stage).
, instead of just a few.
@su3 So, make sure you running everything from the same env. Because in your log it says only 7 files found for linking, which I think is a mistake (I believe pytorch has more than 7 c level dependencies).
@su3 So, make sure you running everything from the same env. Because in your log it says only 7 files found for linking, which I think is a mistake (I believe pytorch has more than 7 c level dependencies).
I confirm that I tested and compiled in the same environment. Running the Python script directly works without any issues.
Hey @su3 , running torch (and any other native python modules that rare using C) in WASI is not yet supported.
We are working on adding them as part of WASIX, and doin that sholud solve this issue
I wrote a simple Python program for testing. After execution, I got:
The code is as follows:
Here's the compilation process:
It works fine when compiled with Nuitka.
The current environment is:
Not sure what went wrong?