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.
When
setup()returns a coroutine, ourvue_compatibletries to create a proxy for it. However, that proxy is not functional:It is unclear why this is happening. We are explicitly calling
create_proxywhich 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.pyfrom the tutorials.