-
Notifications
You must be signed in to change notification settings - Fork 63
Description
One or more exceptions occur during Python interpreter shutdown, after the loader_component.py example is executed in an interactive session (REPL).
Steps to reproduce
- Star a Python REPL
- Paste the contents of https://github.com/bytecodealliance/wasmtime-py/blob/main/examples/loader_component.py
- Exit the REPL
Result:
Python 3.14.0 (main, Oct 14 2025, 21:10:22) [Clang 20.1.4 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wasmtime, wasmtime.loader
...
... import loader_component_add # type: ignore
...
...
... store = wasmtime.Store()
... component = loader_component_add.Root(store)
... assert component.add(store, 1, 2) == 3
...
>>>
Exception ignored while calling deallocator <function Managed.__del__ at 0x102961170>:
Traceback (most recent call last):
File "/Users/alex/src/wasmtime-py/.venv/lib/python3.14/site-packages/wasmtime/_managed.py", line 95, in __del__
File "/Users/alex/src/wasmtime-py/.venv/lib/python3.14/site-packages/wasmtime/_managed.py", line 44, in close
File "/Users/alex/src/wasmtime-py/.venv/lib/python3.14/site-packages/wasmtime/_store.py", line 31, in _delete
TypeError: 'NoneType' object is not callable
Exception ignored while calling deallocator <function Managed.__del__ at 0x102961170>:
Traceback (most recent call last):
File "/Users/alex/src/wasmtime-py/.venv/lib/python3.14/site-packages/wasmtime/_managed.py", line 95, in __del__
File "/Users/alex/src/wasmtime-py/.venv/lib/python3.14/site-packages/wasmtime/_managed.py", line 44, in close
File "/Users/alex/src/wasmtime-py/.venv/lib/python3.14/site-packages/wasmtime/_engine.py", line 19, in _delete
TypeError: 'NoneType' object is not callableThe exception does not occur when the example is run as a script
(wasmtime-py) ➜ examples git:(nox) ✗ python loader_component.py
(wasmtime-py) ➜ examples git:(nox) ✗ echo $?
0Metadata
Metadata
Assignees
Labels
No labels