Message codes: AI models¶
See also: Message codes (the index of every code) and Messages and codes (the line grammar, what a code guarantees and when to trust one).
Trust a code only when the line is one of the lines below, a value in place of
each <name>, after at most one prefix: the index lists the prefixes and
message-codes-values.md the values.
Codes¶
| Code | Level | Means | Since |
|---|---|---|---|
lfs-pointer |
ERROR, WARNING | A file is a Git LFS pointer: a small text file standing in for content the checkout does not have (made or cloned without Git LFS). | 0.22.0 |
lfs-pointer-malformed |
ERROR, WARNING | A file starts with the Git LFS pointer line but is not a valid pointer: damaged, cut short, or 1 KiB or larger. | 0.22.0 |
lfs-pointer/shipped |
WARNING | A built wheel or sdist holds Git LFS pointer files where the content belongs: it was built from a checkout without the LFS content. | 0.22.0 |
library-missing |
ERROR, WARNING | A library Pitloom needs for a step is not installed: an optional extra for a model reader, the Hugging Face Hub, SPDX 3 validation, --allow-build or magika content types. | 0.22.0 |
library-unusable |
ERROR, WARNING | A library Pitloom needs for a step is installed but fails to import: a broken or partial install, a library it needs in turn missing, or a build for another Python or platform. The API line (since 0.25.0) is poetry-core, which Pitloom depends on, installed at a release that moved a function Pitloom calls. | 0.23.0 |
model-unreadable |
WARNING | A file whose header is a model format's could not be read: its reader failed (a truncated or corrupt file, a format version the reader does not know), or the file declares more than it can hold. | 0.22.0 |
model-wrong-format |
ERROR, WARNING | A file named as an AI model is not one: its header is not the format its suffix names, it is empty, or (a file named on its own) it is no model of a supported format. | 0.22.0 |
reader-unsafe |
INFO | A wheel holds AI models in formats whose reader Pitloom does not run on a wheel's files (fastText, GGUF, HDF5, ONNX, PyTorch .pt and .pth): a hostile file could crash or hang it, or exhaust its memory. | 0.22.0 |
reader-unsafe/remote |
INFO | A model file or a project's model files read from a Git URL, or the models of a wheel downloaded from a PyPI URL, are in a format whose reader Pitloom does not run on a downloaded file (fastText, GGUF, HDF5, ONNX, PyTorch .pt and .pth): a hostile file could crash or hang it, or exhaust its memory. | 0.23.4 |
usage-unparseable |
WARNING | A Python file that names an AI model file could not be parsed as Python of the version Pitloom runs on: it has a syntax error, it uses syntax a newer Python added (the line names this Python's version), it holds a null byte, or it nests too deeply to read. | 0.22.1 |
usage-unparseable/mention |
INFO | The text of a Python file that could not be parsed names an AI model file: it may use it, but only a parsed file says how. | 0.22.1 |
usage-unusable |
WARNING | A file whose extension is .py in other letter case (.PY) was not read for model usage: Python imports only a lower-case .py file. | 0.22.1 |
lfs-pointer¶
- Level: ERROR, WARNING. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
- Means: A file is a Git LFS pointer: a small text file standing in for content the checkout does not have (made or cloned without Git LFS).
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Listed each pointer file by the SHA-256 the pointer states for its content, with the stated size in the hash comment (no SHA-512, no content type); did not read the content or list it as an AI model. One warning names the first file in sorted order and, for more than one, how many.
- Tell the user: the SBOM still identifies each file by its content's SHA-256 but lacks what reading it gives (AI model details, SHA-512). If they want them, they run 'git lfs pull' in the checkout (for a Git URL: clone it with Git LFS and run Pitloom on that directory) and generate again. Do not pull, clone or regenerate for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FILE=<file>: Git LFS pointer, content not read<count>; run 'git lfs pull' for the content [lfs-pointer]
WARNING: FILE=<file>: Git LFS pointer, content not read<count>; clone with git lfs, then run on the directory [lfs-pointer]
ERROR: '<path>': header is a Git LFS pointer, content not pulled (oid sha256:<oid>, size <size>); run 'git lfs pull' [lfs-pointer]
ERROR: '<path>': header is a Git LFS pointer, content not fetched (oid sha256:<oid>, size <size>); clone with git lfs, then run on the file [lfs-pointer]
lfs-pointer-malformed¶
- Level: ERROR, WARNING. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
- Means: A file starts with the Git LFS pointer line but is not a valid pointer: damaged, cut short, or 1 KiB or larger.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Listed it as an ordinary file, hashed as it is, not as an AI model.
- Tell the user: the file is neither its content nor a valid pointer: they check it out again or replace it with the real content, then generate again. Do not change the file for them.
- Lines:
WARNING: FORMAT=<format> FILE=<file>: header looks like a Git LFS pointer but is not a valid one; not listed as an AI model [lfs-pointer-malformed]
WARNING: FILE=<file>: header looks like a Git LFS pointer but is not a valid one; not listed as an AI model [lfs-pointer-malformed]
ERROR: '<path>': header looks like a Git LFS pointer but is not a valid one [lfs-pointer-malformed]
lfs-pointer/shipped¶
- Level: WARNING.
- Means: A built wheel or sdist holds Git LFS pointer files where the content belongs: it was built from a checkout without the LFS content.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Listed each file as the artefact holds it, with the hashes of the pointer text.
- Tell the user: the artefact is probably broken: whoever installs it gets pointer text, not the files. If the content belongs in it, they run 'git lfs pull' before building and build again, before publishing. Do not rebuild for them.
- Lines:
WARNING: FILE=<file>: Git LFS pointer shipped<count>; the build did not pull LFS content [lfs-pointer/shipped]
library-missing¶
- Level: ERROR, WARNING. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
- Means: A library Pitloom needs for a step is not installed: an optional extra for a model reader, the Hugging Face Hub, SPDX 3 validation, --allow-build or magika content types.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: For a model file, listed the model by its file, format and hashes only (a format-only entry, named after its file), without its metadata. For any other step, did not run it: no SBOM of a Hugging Face model, no validation; --allow-build (its warning line, after Build: ) found the files without a build, as the file discovery line after it says. Installed nothing.
- Tell the user: which models or which step went without the library and which extra installs it, as the line names it (pitloom[ai] installs every model reader and the Hugging Face Hub client). They install it where Pitloom runs (with uvx or pipx, in the --from or --spec requirement) and run again; a model reader then runs on each such file, so only for files they trust. Do not install anything or run again for them; ask first, and with nobody to ask, report it only.
- Printed after:
Build: <text>(--allow-build: the build and its temporary directories), on its WARNING lines; the prefix is not part of the line. - Lines:
WARNING: FORMAT=<format> FILE=<file>: required library not installed; install <requirement> [library-missing]
ERROR: required library not installed: <module>; install <requirement> [library-missing]
WARNING: required library not installed: <module>; install <requirement> [library-missing]
library-unusable¶
- Level: ERROR, WARNING. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
- Means: A library Pitloom needs for a step is installed but fails to import: a broken or partial install, a library it needs in turn missing, or a build for another Python or platform. The API line (since 0.25.0) is poetry-core, which Pitloom depends on, installed at a release that moved a function Pitloom calls.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: For a model file, listed the model by its file, format and hashes only (a format-only entry, named after its file), without its metadata. For any other step, did not run it: no SBOM of a Hugging Face model, no validation, no SBOM with magika content types (method magika); with method auto, every file's content type from its extension, said once per process. Without poetry-core's API, read no [tool.poetry] dependency table, said once per process. Installed nothing.
- Tell the user: which models or which step went without the library, what the import reported and which extra reinstalls it, as the line names it. They reinstall it where Pitloom runs (with uvx or pipx, in the --from or --spec requirement) and run again; a model reader then runs on each such file, so only for files they trust. Do not install anything or run again for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FORMAT=<format> FILE=<file>: required library failed to import: <error>; reinstall <requirement> [library-unusable]
ERROR: required library failed to import: <module>: <error>; reinstall <requirement> [library-unusable]
WARNING: required library failed to import: <module>: <error>; content types from file extensions; reinstall <requirement> [library-unusable]
WARNING: required library API not found: poetry-core: <error>; Poetry dependency tables not read; reinstall Pitloom [library-unusable]
model-unreadable¶
- Level: WARNING.
- Means: A file whose header is a model format's could not be read: its reader failed (a truncated or corrupt file, a format version the reader does not know), or the file declares more than it can hold.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Listed the model by its file, format and hashes only (a format-only entry, named after its file), without its metadata; the line says what failed.
- Tell the user: the model is listed without its metadata, and what failed, as the line says. They check the file (a partial download or copy is the common cause: fetch or export it again), or update the reader's library or Pitloom for a newer format version, and generate again. Do not change, replace or download the file for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FORMAT=<format> FILE=<file>: failed to extract metadata; <error> [model-unreadable]
WARNING: FORMAT=<format> FILE=<file>: <reason>; metadata not read [model-unreadable]
model-wrong-format¶
- Level: ERROR, WARNING. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
- Means: A file named as an AI model is not one: its header is not the format its suffix names, it is empty, or (a file named on its own) it is no model of a supported format.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: In a scan, listed it as a file with its hashes, not as an AI model. loom model, loom enrich and loom generate refuse a file named on its own.
- Tell the user: the file is not the model its name says: a wrong suffix, a placeholder or a damaged copy. If a model belongs there, they put the real file in its place and generate again; for loom model or loom enrich, they name the model file itself. Do not rename, replace or download the file for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FORMAT=<format> FILE=<file>: header is not <format>; not listed as an AI model [model-wrong-format]
ERROR: '<path>': header is not <format> [model-wrong-format]
ERROR: '<path>': file is empty [model-wrong-format]
ERROR: '<path>': not an AI model file of a supported format [model-wrong-format]
reader-unsafe¶
- Level: INFO.
- Means: A wheel holds AI models in formats whose reader Pitloom does not run on a wheel's files (fastText, GGUF, HDF5, ONNX, PyTorch .pt and .pth): a hostile file could crash or hang it, or exhaust its memory.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Listed the model by its file, format and hashes only (a format-only entry, named after its file), without its metadata, its reader not run. One line per scan names the formats met that no earlier line of the run named.
- Tell the user: which formats in the wheel were not read, and why. If they trust the wheel, they pass --trust-model-files (trust_model_files=True in the library; the trust-model-files input of the GitHub Action, with embed-wheel and an empty project-path) and generate again; no config file can set it. Do not add the flag or generate again for them; ask first, and with nobody to ask, report it only.
- Lines:
INFO: AI models in a wheel in these formats are listed without metadata, their reader not being run on a wheel's files: <formats>; pass --trust-model-files for a wheel you trust [reader-unsafe]
reader-unsafe/remote¶
- Level: INFO.
- Means: A model file or a project's model files read from a Git URL, or the models of a wheel downloaded from a PyPI URL, are in a format whose reader Pitloom does not run on a downloaded file (fastText, GGUF, HDF5, ONNX, PyTorch .pt and .pth): a hostile file could crash or hang it, or exhaust its memory.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Listed the model by its file, format and hashes only (a format-only entry, named after its file), without its metadata, its reader not run.
- Tell the user: which models from the Git URL or the PyPI URL were not read, and why. If they trust the repository's or the release's model files, they pass --trust-model-files (trust_model_files=True in the library; for a Git URL, the trust-model-files input of the GitHub Action) and generate again; no config file can set it. For a Git URL, running Pitloom on a local clone reads them in full too, but also honours the repository's own configuration and build file list. Do not add the flag or generate again for them; ask first, and with nobody to ask, report it only.
- Lines:
INFO: AI models from a Git URL in these formats are listed without metadata, their reader not being run on a downloaded file: <formats>; pass --trust-model-files for a repository you trust [reader-unsafe/remote]
INFO: FILE=<file>: AI models in these formats are listed without metadata, their reader not being run on a downloaded file: <formats>; pass --trust-model-files for a release you trust [reader-unsafe/remote]
usage-unparseable¶
- Level: WARNING.
- Means: A Python file that names an AI model file could not be parsed as Python of the version Pitloom runs on: it has a syntax error, it uses syntax a newer Python added (the line names this Python's version), it holds a null byte, or it nests too deeply to read.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Recorded no usage relationship from it, for any model: the file name in its text is not a use. The model is listed as before, and the usage-unparseable/mention line says which model each such file names.
- Tell the user: which file could not be parsed and why, as the line says. If the file is valid for a newer Python, they run Pitloom on that Python; if it is broken, they fix it, or leave it out of the project; then they generate again. A file that is not meant to be Python (a template, a Python 2 script) needs nothing. Do not edit the file or change the Python for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FILE=<file>: could not parse as Python <x.y> for usage scanning; <failure> [usage-unparseable]
usage-unparseable/mention¶
- Level: INFO.
- Means: The text of a Python file that could not be parsed names an AI model file: it may use it, but only a parsed file says how.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Recorded no relationship between the file and the model. One line per file and model file name.
- Nothing to do: Nothing to do on its own: the usage-unparseable warning for the same file says what stopped the parse.
- Lines:
INFO: FILE=<file> MODEL=<name>: model file name found; no usage relationship recorded [usage-unparseable/mention]
usage-unusable¶
- Level: WARNING.
- Means: A file whose extension is .py in other letter case (.PY) was not read for model usage: Python imports only a lower-case .py file.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Did not read it, and recorded no usage relationship from it, for any model. Said once per such file, and only when a model was found.
- Tell the user: which file was not scanned. If it is a Python script that uses a model, they rename it to a lower-case .py extension and generate again; if it is not Python, it needs nothing. Do not rename the file for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FILE=<file>: not scanned for usage; only a .py extension is read as Python [usage-unusable]