Skip to main content
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

  1. Upgrade thrindex: pip install --upgrade thrindex. Both the Python SDK and the Rust engine ship together in the wheel.
  2. Rebuild from source if you are developing THRINDEX itself: maturin develop --release.
  3. 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