Skip to content

The js.createObject example from the pyscript.net documentation doesn't work #1520

@owenlamont

Description

@owenlamont

Checklist

  • I added a descriptive title
  • I searched for other issues and couldn't find a solution or duplication
  • I already searched in Google and didn't find any good information or help

What happened?

I get this error when copying the js.createObject example code from the pyscript.net documentation into pyscript.com

image

What browsers are you seeing the problem on? (if applicable)

No response

Console info

logger.ts:39 [pyexec] Python exception:
Traceback (most recent call last):
  File "/lib/python3.10/_pyodide/_base.py", line 460, in eval_code
    .run(globals, locals)
  File "/lib/python3.10/_pyodide/_base.py", line 306, in run
    coroutine = eval(self.code, globals, locals)
  File "<exec>", line 10, in <module>
AttributeError: createObject

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions