> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sifr.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# SIFR-PYIMP-0002: A package-local Python bridge source or import inventory is invalid.

> A package-local Python bridge source or import inventory is invalid.

`SIFR-PYIMP-0002` belongs to the **Embedded Python imports** diagnostic family. It means: a package-local Python bridge source or import inventory is invalid.

## Why It Happens

An embedded Python import or module load failed. Check declared imports, module paths, and that the selected environment can import the target.

<Info>
  Use `sifr --explain SIFR-PYIMP-0002` locally to see the renderer's exact message template and any machine-applicable suggestions for the compiler version you are running.
</Info>

## Details

| Field                  | Value                                                                                                       |
| ---------------------- | ----------------------------------------------------------------------------------------------------------- |
| Code                   | `SIFR-PYIMP-0002`                                                                                           |
| Family                 | `PYIMP`                                                                                                     |
| Severity               | Error                                                                                                       |
| Stability              | stable                                                                                                      |
| Owner                  | `sifr_package::python`                                                                                      |
| Representative fixture | `crates/sifr_package/src/python/bridge_inventory_tests.rs::invalid_python_bridge_source_reports_pyimp_0002` |

See the [Error Codes index](/diagnostics/error-codes) for the complete catalog.
