| SPDX-FileCopyrightText | 2026-present Arthit Suriyawongkul |
|---|---|
| SPDX-FileType | DOCUMENTATION |
| SPDX-License-Identifier | CC0-1.0 |
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.
| Code | Level | Means | Since |
|---|---|---|---|
config-unsafe |
INFO | The [tool.pitloom] settings of a project fetched from a Git URL, or of an sdist downloaded from a PyPI URL, if it has any, are not applied: they could point Pitloom at files, a registry or the network as the project chooses, and the project is untrusted. | 0.23.4 |
config-unsafe/build-code |
WARNING | The build configuration of a project fetched from a Git URL names Python code of the repository that listing the wheel's files would run: a Hatchling metadata hook, a setuptools cmdclass or attr version, a PDM build hook (pdm_build.py or custom-hook) or run-setuptools; or a setup.cfg [global] section, which sets setuptools' own options (where it reads files from, which command code it loads). The repository is untrusted, so that code is not run and those options are not set. The line names the file that holds the settings and the settings ignored. | 0.23.4 |
hf-url-invalid |
ERROR | A Hugging Face target is neither a Hub model URL (https://huggingface.co//) nor a model id (/). | 0.25.0 |
input-not-found |
ERROR, WARNING | A path named for Pitloom to read does not exist: a model file, wheel, sdist, project directory, configuration, ID registry or SBOM file, or a PATH given to 'loom id generate' to index, on disk (or something else is there: the line says it is not a file, or not a directory), the file or folder a Git URL names in the repository at its branch (a symbolic link there is not followed, so it counts as absent: its line says it is a link), or a pattern or directory that holds nothing of what was asked for (or a wheel pattern nested too deeply to expand: its line says so). The lines for a model file and for a Git URL's file or folder print since 0.23.4, the others since 0.25.0. | 0.23.4 |
input-not-found/fragment |
WARNING | An SBOM fragment the project configures ([tool.pitloom.fragment]) does not exist. | 0.25.0 |
model-ambiguous |
ERROR, INFO | A folder named for an AI model SBOM holds several AI model files, and no file was named: one SBOM describes one model. | 0.23.4 |
model-ambiguous/over-cap |
ERROR | A folder named for an AI model SBOM holds more files whose names could be AI models than its cap, and no file was named: which of them are models is not known, and one SBOM describes one model. | 0.23.4 |
project-not-found |
ERROR | A folder read as a Python project holds no project config (pyproject.toml, setup.cfg or setup.py). | 0.23.4 |
project-not-found/model-files |
ERROR | A project SBOM was asked for a folder of a Git URL that holds no Python project (pyproject.toml, setup.cfg or setup.py) but files whose names could be AI models. | 0.23.4 |
project-or-model-not-found |
ERROR | A folder named for an SBOM holds neither a Python project (pyproject.toml, setup.cfg or setup.py) nor, directly in it, an AI model file of a supported format. | 0.23.4 |
sbom-invalid |
ERROR, WARNING | An SBOM given to read is JSON but not a valid SPDX 3 document: its @graph is not a list of objects ('embed-wheel --sbom', 'loom id import'; checked before the format, whatever the file is named), an object of it names one key twice (JSON readers disagree on which value counts, so what was checked may not be what is embedded), the SPDX 3 reader refuses it ('loom id import': an object with no type, a property of the wrong kind; the reader's text after the line's ';'), or spdx3-validate refuses it ('embed-wheel --sbom --validate', 'loom validate-wheel', 'loom fragment validate': its findings come before, each line after spdx3-validate: , then one line per document, or for the documents merged; a document it could not load says why the same way). As a WARNING: 'loom id import' into an empty registry finds a document id that cannot be a namespace: not an absolute IRI, holding '#', or holding a character an IRI cannot hold (a space). | 0.25.0 |
sbom-wrong-format |
ERROR | An SBOM given to embed or to import into an ID registry is named as SPDX 3 JSON-LD (.spdx3.json) but holds another format (a CycloneDX document, say). | 0.25.0 |
target-ambiguous |
INFO | The path named for an SBOM is a folder, or a file in it whose name no AI model file has and that is not one, or is missing (a Git URL of README.md), so it does not say by itself what the SBOM describes; Pitloom decided by the rule: a project config makes it a project's, else the folder's one AI model file is read. | 0.23.4 |
target-ambiguous/git-page |
INFO | A Git URL names more than a repository, or names it in another spelling: a web page of a repository (with a branch, tag or commit, a folder or a file), a URL that is not itself a repository's, or a page of a file that is a folder (or of a folder that is a file). Pitloom decided by its rule what the URL names. | 0.25.0 |
target-ambiguous/hf-url |
INFO | A Hugging Face model URL spelt otherwise than https://huggingface.co// (hf.co, www.huggingface.co, http://, a scheme or host in another case). Pitloom decided by its rule which model it names. | 0.25.0 |
target-wrong-format |
ERROR | The target given is not of the kind the command reads: a Hugging Face model given to 'loom project', or a file not named .whl given as a wheel ('loom wheel', 'embed-wheel', 'verify-wheel', 'validate-wheel'). | 0.25.0 |
-
Level: INFO.
-
Means: The [tool.pitloom] settings of a project fetched from a Git URL, or of an sdist downloaded from a PyPI URL, if it has any, are not applied: they could point Pitloom at files, a registry or the network as the project chooses, and the project is untrusted.
-
SBOM effect: none: the SBOM states what the input holds.
-
Pitloom did: Did not apply them: the run uses Pitloom's defaults, or the settings of --config (pitloom_config= in the library) when given, which also silences this line.
-
Nothing to do: the SBOM is generated with the defaults; settings the user trusts go in a file they pass with --config.
-
Printed after:
Git source: <text>(a Git URL fetch), on its INFO lines; the prefix is not part of the line. -
Lines:
INFO: the repository's own [tool.pitloom] settings are ignored (untrusted); --config or pitloom_config= applies [config-unsafe] INFO: FILE=<file>: the downloaded sdist's own [tool.pitloom] settings are ignored (untrusted); --config or pitloom_config= applies [config-unsafe]
-
Level: WARNING.
-
Means: The build configuration of a project fetched from a Git URL names Python code of the repository that listing the wheel's files would run: a Hatchling metadata hook, a setuptools cmdclass or attr version, a PDM build hook (pdm_build.py or custom-hook) or run-setuptools; or a setup.cfg [global] section, which sets setuptools' own options (where it reads files from, which command code it loads). The repository is untrusted, so that code is not run and those options are not set. The line names the file that holds the settings and the settings ignored.
-
SBOM effect: weaker: what the SBOM says is less sure.
-
Pitloom did: Ignored those settings: no code of the repository ran, and the wheel's files were listed from the rest of the build configuration, which may miss a file that code would add.
-
Tell the user: that the repository's build configuration names code that Pitloom does not run on a downloaded repository, so the file list may miss what it would add. To have it, they clone the repository, review that code, and generate from the local copy. Do not clone or run that code for them; ask first, and with nobody to ask, report it only.
-
Lines:
WARNING: FILE=<file>: build-time code of the downloaded repository is not run; <settings> ignored [config-unsafe/build-code]
-
Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
-
Means: A Hugging Face target is neither a Hub model URL (https://huggingface.co//) nor a model id (/).
-
SBOM effect: not-written: no SBOM is written for the input.
-
Pitloom did: Read nothing and sent no request: 'loom model', 'loom project' and 'loom generate' exit 1; generate, generate_model_sbom, generate_project_sbom, generate_git_project_sbom and read_huggingface raise ValueError carrying the code. An http(s) URL on huggingface.co or hf.co that is no Space or dataset is taken as a model URL, so a malformed one says this, not that a model file is not found.
-
Tell the user: the URL or id was not read, as the line gives it. They check it and run again. Do not guess another model and run for them; ask first, and with nobody to ask, report it only.
-
Lines:
ERROR: URL=<url>: not a valid Hugging Face URL or model ID [hf-url-invalid]
-
Level: ERROR, WARNING. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
-
Means: A path named for Pitloom to read does not exist: a model file, wheel, sdist, project directory, configuration, ID registry or SBOM file, or a PATH given to 'loom id generate' to index, on disk (or something else is there: the line says it is not a file, or not a directory), the file or folder a Git URL names in the repository at its branch (a symbolic link there is not followed, so it counts as absent: its line says it is a link), or a pattern or directory that holds nothing of what was asked for (or a wheel pattern nested too deeply to expand: its line says so). The lines for a model file and for a Git URL's file or folder print since 0.23.4, the others since 0.25.0.
-
SBOM effect: not-written: no SBOM is written for the input.
-
Pitloom did: Wrote nothing: no SBOM is written; for 'loom id', the ID registry is not written; for 'loom embed-wheel', no wheel is changed; a check ('loom fragment validate', 'loom verify-wheel', 'loom validate-wheel') checks nothing. The command exits 1 (the Action step fails), the build hook fails the build, and the library raises FileNotFoundError carrying the code (IdRegistry.generate for a path to index that is not there), ValueError for a fragments directory that holds no JSON file, or RemoteSourceError (code git.path-not-found) for a Git URL's file or folder. As a WARNING, an ID registry file was gone (or no longer a file) when a run whose SBOM is already built read it again to save the ids it added: nothing is saved and the SBOM stands.
-
Tell the user: which path was not found, as the line names it (for a Git URL, a path in the repository). They check the path, or the URL's branch and path, and run again. Do not guess another path or branch and run for them; ask first, and with nobody to ask, report it only.
-
Lines:
ERROR: Model file not found: '<path>' [input-not-found] ERROR: No file '<path>' in the repository at that branch. [input-not-found] ERROR: File '<path>' in the repository at that branch is a symbolic link; links are not followed. [input-not-found] ERROR: No folder '<path>' in the repository at that branch. [input-not-found] ERROR: <input> not found: '<path>' [input-not-found] ERROR: <input> not found: '<path>' is not a file [input-not-found] ERROR: <input> not found: '<path>' is not a directory [input-not-found] ERROR: no wheel file matches '<path>' [input-not-found] ERROR: no wheel file matches '<path>': the pattern nests too deeply to expand; name each wheel file without a pattern [input-not-found] ERROR: no JSON fragment file in '<path>' [input-not-found] ERROR: no source or data directory under '<path>'; pass PATH arguments [input-not-found] WARNING: <input> not found: '<path>' [input-not-found] WARNING: <input> not found: '<path>' is not a file [input-not-found]
-
Level: WARNING.
-
Means: An SBOM fragment the project configures ([tool.pitloom.fragment]) does not exist.
-
SBOM effect: thinner: the SBOM says less than reading the input would.
-
Pitloom did: Merged the SBOM without it, and wrote it (the build hook builds the wheel). For a fragment marked required, the merge then fails with fragment-missing and no SBOM is written: the command exits 1, the hook fails the build, the library raises FragmentMergeError. 'loom fragment list' lists it with EXISTS=false, and exits 1 for a required one.
-
Tell the user: which fragment was not found, as the line names it. They create it (run the enrichment that writes it), fix its path in the configuration, or remove the entry, and run again. Do not edit the configuration for them; ask first, and with nobody to ask, report it only.
-
Lines:
WARNING: FILE=<file>: SBOM fragment not found; not merged [input-not-found/fragment] WARNING: FILE=<file>: SBOM fragment not found; required, so the merge will fail [input-not-found/fragment]
-
Level: ERROR, INFO. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
-
Means: A folder named for an AI model SBOM holds several AI model files, and no file was named: one SBOM describes one model.
-
SBOM effect: not-written: no SBOM is written for the input.
-
Pitloom did: Wrote no SBOM. One INFO line per model file found names it, in sorted order, before the error.
-
Tell the user: which model files the folder holds, as the INFO lines name them. They name the one they want (its path, or for a Git URL the link to the file's page) and generate again, once per model. Do not pick a file and generate for them; ask first, and with nobody to ask, report it only.
-
Lines:
INFO: FILE=<file>: one of several AI model files [model-ambiguous] ERROR: '<path>': several AI model files<count>; name one file [model-ambiguous]
-
Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
-
Means: A folder named for an AI model SBOM holds more files whose names could be AI models than its cap, and no file was named: which of them are models is not known, and one SBOM describes one model.
-
SBOM effect: not-written: no SBOM is written for the input.
-
Pitloom did: Wrote no SBOM; no file of the folder was read, said first in one over-cap WARNING.
-
Tell the user: the folder holds too many files that could be models for Pitloom to look at. They name the one model file they want (its path, or for a Git URL the link to the file's page), or a folder holding only it, and generate again. Do not pick a file and generate for them; ask first, and with nobody to ask, report it only.
-
Lines:
ERROR: '<path>': more than <limit> files that could be AI models, none read; name one file [model-ambiguous/over-cap]
-
Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
-
Means: A folder read as a Python project holds no project config (pyproject.toml, setup.cfg or setup.py).
-
SBOM effect: not-written: no SBOM is written for the input.
-
Pitloom did: Wrote no SBOM. Subfolders are not searched; for a Git URL whose subfolders hold a project, the line names them (git.no-project).
-
Tell the user: the folder holds no Python project, as the line names it. They name the project's folder (for a monorepo, the sub-project's folder the error names, if any) and generate again. Do not guess a folder and generate for them; ask first, and with nobody to ask, report it only.
-
Lines:
ERROR: No pyproject.toml, setup.cfg, or setup.py found in '<path>' [project-not-found] ERROR: No pyproject.toml, setup.cfg, or setup.py found in '<path>'; Python projects are in subfolders (<folders>); give the URL of one of them [project-not-found] ERROR: No pyproject.toml, setup.cfg, or setup.py found in '<path>'; Python projects are in subfolders (<folders>); Pitloom reads the folder in the URL only [project-not-found]
-
Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
-
Means: A project SBOM was asked for a folder of a Git URL that holds no Python project (pyproject.toml, setup.cfg or setup.py) but files whose names could be AI models.
-
SBOM effect: not-written: no SBOM is written for the input.
-
Pitloom did: Wrote no SBOM; no file was read. The error code is git.no-project.
-
Tell the user: the folder has no project but may hold AI models, as the line names them. For a model SBOM they run loom model or loom generate on the same URL (generate_git_sbom in the library). Do not run it for them; ask first, and with nobody to ask, report it only.
-
Lines:
ERROR: No pyproject.toml, setup.cfg, or setup.py found in '<path>'; it holds files that may be AI models (<files>): use 'loom model <url>' or 'loom generate <url>' [project-not-found/model-files]
-
Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
-
Means: A folder named for an SBOM holds neither a Python project (pyproject.toml, setup.cfg or setup.py) nor, directly in it, an AI model file of a supported format.
-
SBOM effect: not-written: no SBOM is written for the input.
-
Pitloom did: Wrote no SBOM. Subfolders are not searched for a model file; for a Git URL whose subfolders hold a project, the line names them.
-
Tell the user: the folder has no project and no model file Pitloom reads. They name the project's folder, or the model file itself (its path, or for a Git URL the link to the file's page), and generate again. Do not guess a file or folder and generate for them; ask first, and with nobody to ask, report it only.
-
Lines:
ERROR: '<path>': no Python project (pyproject.toml, setup.cfg or setup.py) and no AI model file of a supported format; name a project folder or a model file [project-or-model-not-found] ERROR: '<path>': no Python project (pyproject.toml, setup.cfg or setup.py) and no AI model file of a supported format; Python projects are in subfolders (<folders>); give the URL of one of them [project-or-model-not-found] ERROR: '<path>': no Python project (pyproject.toml, setup.cfg or setup.py) and no AI model file of a supported format; Python projects are in subfolders (<folders>); Pitloom reads the folder in the URL only [project-or-model-not-found]
-
Level: ERROR, WARNING. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
-
Means: An SBOM given to read is JSON but not a valid SPDX 3 document: its @graph is not a list of objects ('embed-wheel --sbom', 'loom id import'; checked before the format, whatever the file is named), an object of it names one key twice (JSON readers disagree on which value counts, so what was checked may not be what is embedded), the SPDX 3 reader refuses it ('loom id import': an object with no type, a property of the wrong kind; the reader's text after the line's ';'), or spdx3-validate refuses it ('embed-wheel --sbom --validate', 'loom validate-wheel', 'loom fragment validate': its findings come before, each line after spdx3-validate: , then one line per document, or for the documents merged; a document it could not load says why the same way). As a WARNING: 'loom id import' into an empty registry finds a document id that cannot be a namespace: not an absolute IRI, holding '#', or holding a character an IRI cannot hold (a space).
-
SBOM effect: not-written: no SBOM is written for the input.
-
Pitloom did: Wrote nothing: no wheel is changed, no ID is imported. The command exits 1 ('loom validate-wheel' reports the wheel failed and goes on with the next); the library (embed_wheel_sbom with sbom_path, IdRegistry.import_sbom) raises ValueError carrying the code for an @graph that is not a list of objects, a key given twice or an SBOM the SPDX 3 reader refuses. As a WARNING, the import goes on and the registry keeps the namespace it was created with.
-
Tell the user: which SBOM is not valid, and what the validator reported. They fix or regenerate it and run again. Do not edit the SBOM for them; ask first, and with nobody to ask, report it only.
-
Lines:
ERROR: FILE=<file>: SBOM is not valid; no wheel was written [sbom-invalid] ERROR: FILE=<file>: SBOM @graph is not a list [sbom-invalid] ERROR: FILE=<file>: SBOM @graph holds an element that is not an object [sbom-invalid] ERROR: FILE=<file>: SBOM holds an object with a key given twice [sbom-invalid] ERROR: FILE=<file>: SBOM cannot be read as SPDX 3; <failure> [sbom-invalid] WARNING: FILE=<file>: SBOM namespace <why>; the ID registry keeps its own, not <namespace> [sbom-invalid] ERROR: FILE=<file>: not valid SPDX 3 (<number> finding(s) above) [sbom-invalid] ERROR: the SBOMs together are not valid SPDX 3 (<number> finding(s) above) [sbom-invalid] ERROR: FILE=<file>: could not be validated; spdx3-validate says why above [sbom-invalid] ERROR: the SBOMs could not be validated; spdx3-validate says why above [sbom-invalid]
-
Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
-
Means: An SBOM given to embed or to import into an ID registry is named as SPDX 3 JSON-LD (.spdx3.json) but holds another format (a CycloneDX document, say).
-
SBOM effect: not-written: no SBOM is written for the input.
-
Pitloom did: Wrote nothing: no wheel is changed and no ID registry written; the command exits 1, the library raises ValueError carrying the code.
-
Tell the user: which file is named as SPDX 3 but is not, as the line names it. They give the right file, or rename it to match its format, and run again. Do not rename or convert the file for them; ask first, and with nobody to ask, report it only.
-
Lines:
ERROR: FILE=<file>: named .spdx3.json but not SPDX 3 JSON-LD [sbom-wrong-format]
-
Level: INFO.
-
Means: The path named for an SBOM is a folder, or a file in it whose name no AI model file has and that is not one, or is missing (a Git URL of README.md), so it does not say by itself what the SBOM describes; Pitloom decided by the rule: a project config makes it a project's, else the folder's one AI model file is read.
-
SBOM effect: none: the SBOM states what the input holds.
-
Pitloom did: Read what the line names: the folder, or its one model file. The SBOM describes that file, or the folder's project.
-
Nothing to do: the SBOM describes what the line names; to describe another file of the folder, name that file.
-
Lines:
INFO: FILE=<file>: not an AI model file; reading its folder [target-ambiguous] INFO: FILE=<file>: no Python project; reading this AI model file [target-ambiguous] INFO: FILE=<file>: the one AI model file; reading it [target-ambiguous]
-
Level: INFO.
-
Means: A Git URL names more than a repository, or names it in another spelling: a web page of a repository (with a branch, tag or commit, a folder or a file), a URL that is not itself a repository's, or a page of a file that is a folder (or of a folder that is a file). Pitloom decided by its rule what the URL names.
-
SBOM effect: none: the SBOM states what the input holds.
-
Pitloom did: Read what the line names: the repository, at the branch, tag or commit, and the folder or file, it names.
-
Nothing to do: the SBOM describes what the line names; to describe another version or folder, give its URL.
-
Printed after:
Git source: <text>(a Git URL fetch), on its INFO lines; the prefix is not part of the line. -
Lines:
INFO: URL=<url>: read as repository <target> [target-ambiguous/git-page] INFO: URL=<url>: read as repository <target>, <ref-kind> <ref> [target-ambiguous/git-page] INFO: URL=<url>: read as repository <target>, folder '<path>' [target-ambiguous/git-page] INFO: URL=<url>: read as repository <target>, <ref-kind> <ref>, folder '<path>' [target-ambiguous/git-page] INFO: URL=<url>: not a repository; read as repository <target> [target-ambiguous/git-page] INFO: URL=<url>: '<path>' is a file, not a folder; read as the file named [target-ambiguous/git-page] INFO: URL=<url>: '<path>' is a folder, not a file; reading it [target-ambiguous/git-page]
-
Level: INFO.
-
Means: A Hugging Face model URL spelt otherwise than https://huggingface.co// (hf.co, www.huggingface.co, http://, a scheme or host in another case). Pitloom decided by its rule which model it names.
-
SBOM effect: none: the SBOM states what the input holds.
-
Pitloom did: Read the model the line names, from the Hub the run asks (https://huggingface.co unless HF_ENDPOINT names another).
-
Nothing to do: the SBOM describes the model the line names; to describe another, give its URL.
-
Lines:
INFO: URL=<url>: read as Hugging Face model <target> [target-ambiguous/hf-url]
-
Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
-
Means: The target given is not of the kind the command reads: a Hugging Face model given to 'loom project', or a file not named .whl given as a wheel ('loom wheel', 'embed-wheel', 'verify-wheel', 'validate-wheel').
-
SBOM effect: not-written: no SBOM is written for the input.
-
Pitloom did: Read nothing of it: the command exits 1; the library raises ValueError carrying the code (generate_project_sbom and generate_git_project_sbom for a Hugging Face model URL, generate_wheel_sbom for a file not named .whl).
-
The caller may fix: The caller may run the command the line names, or give a wheel file (a built .whl), and run again.
-
Lines:
ERROR: URL=<url>: a Hugging Face model, not a project; use 'loom model' [target-wrong-format] ERROR: FILE=<file>: not a .whl file [target-wrong-format]