Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows is not support? #38

Closed
liudonghua123 opened this issue Oct 24, 2022 · 3 comments
Closed

windows is not support? #38

liudonghua123 opened this issue Oct 24, 2022 · 3 comments

Comments

@liudonghua123
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

williamstein commented Oct 31, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants