Skip to content

Getting TypeError: Module[prop] is undefined when importing package #507

@matham

Description

@matham

When running the following notebook (run the full notebook), I get the following error:

TypeError: Module[prop] is undefined
get/env[prop]()@https://pyodide.cdn.iodide.io/pyodide.asm.js:8:9106
{anonymous}()@https://pyodide.cdn.iodide.io/pyodide.asm.js line 8 > WebAssembly.Module:wasm-function[214]:0xafb7
{anonymous}()@https://pyodide.cdn.iodide.io/pyodide.asm.js line 8 > WebAssembly.Module:wasm-function[1366]:0x5a15d
{anonymous}()@https://pyodide.cdn.iodide.io/pyodide.asm.wasm:wasm-function[2981]:0x359d92
...

I ran into the same issue when running the notebook in a local pyodide build. I grep'ed for Module[prop] and found it in the middle of pyodide.asm.js as ...Module["setThrew"](1,0)}}}return env[prop]=function(){return Module[prop].apply(null,arguments)}}};var info={global:{"NaN":NaN,Infinity:Infinity}... So I manually edited it from function(){return Module[prop].apply(null,arguments)} -> function(){} and that made the issue go away locally. But of course I still have the same issue on https://alpha.iodide.io.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions