You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a project where we'd like to have a runtime with pyodide loaded so we can run mixed JavaScript and Python code. I've tried mixing the code from multiple examples (workers, async, npm loading) but I can't get it to load pyodide.
My best case ends up with the error:
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)
I've pushed the test project to a repo. Any suggestions would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a project where we'd like to have a runtime with pyodide loaded so we can run mixed JavaScript and Python code. I've tried mixing the code from multiple examples (workers, async, npm loading) but I can't get it to load pyodide.
My best case ends up with the error:
I've pushed the test project to a repo. Any suggestions would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions