Skip to content

coroutine proxies get destroyed too early #14

@saraedum

Description

@saraedum

When setup() returns a coroutine, our vue_compatible tries to create a proxy for it. However, that proxy is not functional:

PythonError: pyodide.JsException: Error: Object has already been destroyed
The object was of type "coroutine" and had repr "<coroutine object setup.<locals>.fetch_data at 0x112ad68>"

It is unclear why this is happening. We are explicitly calling create_proxy which should make sure that the proxy does not get deleted but it does not seem to work. Probably this is a bug in pyodide.

An example where this happens is step10.py from the tutorials.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions