ReferenceStablesince v0.9.2

Error codes

Every stable error the library raises, its cause, and the fastest known remedy.

Audience: All usersRead: 5 min

Every entry in the table is a stable API. The code, the name, and the human-facing message do not change between minor versions. Automation can match on the code; humans should read the message.

The table

CodeNameCauseRemedy
E001FingerprintMismatchTwo objects that should be equal produced different fingerprints.Compare inputs field by field with ns.fingerprint_diff to find the drift.
E002UnknownAdapterNo adapter is registered for the framework of the model passed in.Install the matching extra, e.g. pip install 'neuronscope[torch]'.
E003ProbeIncompatibleWithModelThe probe requested layers the adapter cannot resolve.Check the layer glob against ns.introspect(model).layer_names.
E004ArtifactSchemaTooNewThe artifact was written by a newer major version.Upgrade NeuronScope or ask the writer for a downgraded copy.
E005ArtifactSchemaTooOldThe artifact predates the minimum supported major.Migrate with ns migrate <artifact> --to 0.9.2.
E006NonDeterministicOpdeterministic=True was requested but an installed op is not.Set the framework flag documented in the error message, or drop the flag.
E007SealAfterCloseA recording was written to after its scope exited.Move all writes inside the with-block.
E008PromptCanonicalizationErrorA prompt object contains an unhashable field.Convert the field to a str, list, or dict of primitives.
E009StorageBackendUnavailableThe configured storage backend (s3, gcs, azure) is not installed.Install the matching extra or point the URL scheme at a local path.
E010PluginContractMismatchA loaded plugin targets a different plugin-API major.Upgrade or downgrade the plugin, then re-run ns plugins doctor.

How to read an entry

Every error raised by NeuronScope carries three attributes: .code (the E-prefixed identifier), .name (the exception class), and .hint(a one-line, mechanical remedy). Log the code in CI so a failure is trivially attributable to a row above.

Related