Skip to content

A demo application using rustyscript to run pyodide in a deno runtime.

Notifications You must be signed in to change notification settings

mlilback/pyodide_deno_embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting pyodide working with embedded deno

Install

  1. npm install
  2. cargo run

This will run the rust project that will fire up deno, but fails to start pyodide.

Code comes from:

runner.ts is from the first link, and it works from the command line:

 $ deno run --allow-read runner.ts
{"code":"4+6"}
{"output":10}
{"shutdown":true}

Running the built app results in the following:

/Users/mlilback/working/notecalc/erunner/target/debug/erunner
Getting hostname from node:os:
tiger
Hello from rusty
loading test2.js
hello() called
loading pyodide
Error: TypeError: core.ops.op_main_module is not a function
    at Object.mainModule (ext:init_runtime/init_runtime.js:31:43)
    at Array.get (file:///Users/mlilback/working/notecalc/erunner/node:process:912:14)
    at file:///Users/mlilback/working/notecalc/erunner/node_modules/pyodide/pyodide.asm.js:10:1626
    at loadPyodide (file:///Users/mlilback/working/notecalc/erunner/node_modules/pyodide/pyodide.js:3:9854)
    at async Module.hello (file:///Users/mlilback/working/notecalc/erunner/test2.js:9:37)

About

A demo application using rustyscript to run pyodide in a deno runtime.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published