E0108: Graph IR JSON parse error
What happened
The compiler’s capture pass received a JSON string representing the model’s Graph IR (intermediate representation), but the JSON could not be parsed. It is not valid Graph IR JSON.
Why
The Graph IR is produced by the Python SDK’s extraction pass (thx.compile internally serializes the model to JSON before invoking the Rust compiler). If this error appears, the serialization or the transport between Python and Rust produced invalid JSON.
This error should not occur in normal usage. It indicates:
- A version mismatch between the Python SDK and the Rust compiler
- A corrupted message when the Python SDK calls the native extension
How to fix
- Upgrade thrindex:
pip install --upgrade thrindex. Both the Python SDK and the Rust engine ship together in the wheel.
- Rebuild from source if you are developing THRINDEX itself:
maturin develop --release.
- If this error appears in a released version, please file a bug report with the full error message and the thrindex version (
thrindex doctor).
Example