The model registry is inconsistent
- Type
https://pyeconomics.dev/problems/registry-error- HTTP status
- 500
- Exit code
- 1 (internal error)
- Raised as
RegistryError
What it means
The model registry is inconsistent: a duplicate or reused id, say, usually from an installed plugin.
What to do
Run registry.validate() to list each problem by model and rule, then fix or remove the plugin it names.
Every pyeconomics surface reports a failure as a problem in the form of RFC 9457: its type, title, HTTP status and detail, and the exit code the command line returns. A problem never holds a key, a file path, a host or an upstream URL. Every problem type.