peng1999 / typst-pyrunner

Run python code in typst
MIT License
30 stars 0 forks source link

Importing `subprocess` gives an error #3

Closed rkeulemans closed 6 months ago

rkeulemans commented 6 months ago
def x(string):
    import subprocess
    subprocess.run(["ls", "-l"])

Gives the following error:

error: plugin errored with: ModuleNotFoundError("No module named '_signal'")

peng1999 commented 6 months ago

This is expected behavior since Typst wasm has no process API.