-
Notifications
You must be signed in to change notification settings - Fork 755
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
time.sleep() using Wasmer #4671
Comments
This issue also happens when running the following command: wasmer run python/python -- -c "import time; print('start'); time.sleep(1); print('end')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When compiling a Python script that uses the time.sleep() function to WebAssembly using py2wasm, the execution of the WebAssembly module stops when using the Wasmer Runtime. Other runtimes, it works, so I believe it's a wasmer specific issue.
This problem was already discussed in a Discord thread in the official Wasmer server, (https://discord.com/channels/1110300506942881873/1235299336401850518)
Steps to reproduce
I succesfully compiled this Python script using py2wasm.
However, when i run this ('wasmer run Fibonacci.wasm'), the output it 0 and it stops. When i comment "time.sleep(2)", it prints the result correctly.
Expected behavior
The application should not stop after calling time.sleep.
The text was updated successfully, but these errors were encountered: