sagemathinc / cowasm

CoWasm: Collaborative WebAssembly for Servers and Browsers. Built using Zig. Supports Python with extension modules, including numpy.
https://cowasm.org
BSD 3-Clause "New" or "Revised" License
482 stars 23 forks source link

windows is not support? #38

Closed liudonghua123 closed 1 year ago

liudonghua123 commented 1 year ago

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>
williamstein commented 1 year ago

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.

liudonghua123 commented 1 year ago

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
>>>
>>>
williamstein commented 1 year ago

On Sun, Oct 30, 2022 at 6:18 PM liudonghua @.***> wrote:

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

Yes that is a message I specifically put there to work around the terminal issues for now. Work in progress! Thanks for testing!!

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 @.***: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 @.***:ziglang/zig-bootstrap.git 0ce789d0f7a4d89fdc4d9571 on wasi Type "help", "copyright", "credits" or "license" for more information.

0 0

— Reply to this email directly, view it on GitHub https://github.com/sagemathinc/cowasm/issues/38#issuecomment-1296423037, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJXS5TZ5QWYNBX354SHBVDWF4M5XANCNFSM6AAAAAARMTRZR4 . You are receiving this because you modified the open/close state.Message ID: @.***>

-- -- William Stein