sagemathinc / cowasm

CoWasm: Collaborative WebAssembly for Servers and Browsers. Built using Zig. Supports Python with extension modules, including numpy.

Home Page:https://cowasm.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

windows is not support?

liudonghua123 opened this issue · comments

Hi, I tried, it seems could not run on windows.

C:\Users\Liu.D.H>npx python-wasm
Need to install the following packages:
  python-wasm
Ok to proceed? (y)
/bin/bash: C:\Users\Liu.D.H\AppData\Local\npm-cache\_npx\3e7b7466c13fbc48\node_modules\.bin\..\python-wasm\bin\zython: No such file or directory

C:\Users\Liu.D.H>where npx
C:\Program Files\nodejs\npx
C:\Program Files\nodejs\npx.cmd
C:\Users\Liu.D.H\AppData\Roaming\npm\npx
C:\Users\Liu.D.H\AppData\Roaming\npm\npx.cmd

C:\Users\Liu.D.H>
C:\Users\Liu.D.H>npm i -g python-wasm

added 27 packages, and audited 28 packages in 1s

5 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

C:\Users\Liu.D.H>python-wasm
/bin/bash: C:\Users\Liu.D.H\AppData\Roaming\npm\node_modules\python-wasm\bin\zython: No such file or directory

C:\Users\Liu.D.H>
C:\Users\Liu.D.H>node -v
v18.4.0

C:\Users\Liu.D.H>npm -v
8.5.1

C:\Users\Liu.D.H>

It is now possible to do npx python-wasm.

There are still some issues, involving excessive echoing, but that's another problem for a later. In any case, it's now at least possible to run python-wasm.

Thanks. Now python-wasm works on windows. However, I got a strange Press enter a few times. prompt when execute python-wasm.

D:\code\python\CodeFormer>where python-wasm
C:\Users\Liu.D.H\AppData\Roaming\npm\python-wasm
C:\Users\Liu.D.H\AppData\Roaming\npm\python-wasm.cmd

D:\code\python\CodeFormer>python-wasm
Press enter a few times.
5
Python 3.11.0 (main, Oct 27 2022, 10:03:11) [Clang 15.0.3 (git@github.com:ziglang/zig-bootstrap.git 0ce789d0f7a4d89fdc4d9571 on wasi
Type "help", "copyright", "credits" or "license" for more information.
>>> 5
5
>>>
>>> exit()
exit()

D:\code\python\CodeFormer>python-wasm
Press enter a few times.

0
Python 3.11.0 (main, Oct 27 2022, 10:03:11) [Clang 15.0.3 (git@github.com:ziglang/zig-bootstrap.git 0ce789d0f7a4d89fdc4d9571 on wasi
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>>
>>> 0
0
>>>
>>>