Skip to content

Message codes: Wheels

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
archive-member-conflict WARNING Archive members collide where they install: a later member has the same install name (read with \ as a separator, as an installer on Windows reads it), so an installer extracting in order keeps only the later one; a file member's name is also a directory of other members, and no installer can write both; or, in an sdist, members inside and outside its top directory map to one project path, so they would share one ID registry key. 0.25.0
archive-member-invalid WARNING An archive member is stored under a name that is not its install name (a backslash separator, an empty or '.' segment, a ./ in a wheel), so it is listed under the name an installer writes it to; or a member named as a directory (ending in /) carries bytes, which no installer writes. 0.25.0
archive-member-unsafe WARNING An archive member's name has no install location an installer could write it to: absolute (a leading / or a drive such as C:), with a '..' segment, holding a NUL, or empty once normalised; or, on the --allow-build route, it resolves outside the directory Pitloom extracts the built wheel into (a link on the way). 0.25.0
dist-info-ambiguous ERROR, WARNING A wheel has several top-level .dist-info directories and its file name does not pick one: several match the name and version it names (PEP 503 names, PEP 440 versions), the file name is not a PEP 427 wheel name, or none matches it. Pitloom does not guess which is the wheel's own. 0.25.0
dist-info-conflict WARNING A wheel's PEP 427 file name names a package and version whose .dist-info directory the wheel does not hold; it holds exactly one other top-level .dist-info, which Pitloom reads as the wheel's own (a renamed file, or a wheel built under another name). 0.25.0
dist-info-missing ERROR, WARNING A wheel has no top-level .dist-info directory (one vendored under a package is never the wheel's own), or its own .dist-info has no METADATA member (the line names the member looked for). A conforming wheel has both. 0.25.0
wheel-invalid ERROR A wheel's member names do not let an installer tell its files apart: two members have one name, exactly or once read as an installer on Windows reads it (a/M and a\M), or a name holds a NUL, where Python's zipfile cuts the name, so the member installs under a shorter name that may be another member's. No reader can tell which member is meant. 0.25.0
wheel-unreadable ERROR A wheel could not be read: the file is not a ZIP archive Python can open (damaged, cut short, another format named .whl, a member name flagged UTF-8 that is not), or one of its members could not be read (damaged, encrypted, a compression Python cannot read, a RECORD that is not UTF-8). The line names the exception's type only, never its text, which quotes member names. 0.25.0
wheel-unusable ERROR A wheel to embed an SBOM in stores a member of its own .dist-info directory under a name that is not its install name (a backslash, a ./ or an empty segment): the embed rewrites RECORD by install name, so it could not tell which entry it rewrites. Only an embed refuses it ('embed-wheel', 'wheel --embed'); a read lists the member under its install name. 0.25.0
wheel-unusable/signed ERROR, INFO A wheel to embed an SBOM in carries a signature of its RECORD (RECORD.jws or RECORD.p7s, PEP 427). The embed rewrites RECORD, so the signature would no longer verify. As an INFO line, --allow-signed-wheel was given and the embed removed the signature. 0.25.0

archive-member-conflict

  • Level: WARNING.
  • Means: Archive members collide where they install: a later member has the same install name (read with \ as a separator, as an installer on Windows reads it), so an installer extracting in order keeps only the later one; a file member's name is also a directory of other members, and no installer can write both; or, in an sdist, members inside and outside its top directory map to one project path, so they would share one ID registry key.
  • SBOM effect: thinner: the SBOM says less than reading the input would.
  • Pitloom did: Left the member out of the SBOM (not listed); on the --allow-build route, did not extract it from the built wheel (not copied), so no file of the SBOM comes from it. The archive is not changed: an embed rewrites the wheel with every member it had. Members sharing a project path are all listed, under that path; an ID registry would give them one id.
  • Tell the user: which members collide, as the line says; a conforming build tool does not write such an archive. If the archive is theirs, they rebuild it with a conforming build tool; else they ask whoever published it. Do not repack the archive 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: ARCHIVE='<archive>' ENTRY='<member>': overwritten by later entry '<later-member>'; not listed [archive-member-conflict]
WARNING: ARCHIVE='<archive>' ENTRY='<member>': overwritten by later entry '<later-member>'; not copied [archive-member-conflict]
WARNING: ARCHIVE='<archive>' ENTRY='<member>': also a directory of other entries; not listed [archive-member-conflict]
WARNING: ARCHIVE='<archive>' ENTRY='<member>': also a directory of other entries; not copied [archive-member-conflict]
WARNING: ARCHIVE='<archive>': members share a project path (<project-paths>); they would share one ID registry key [archive-member-conflict]

archive-member-invalid

  • Level: WARNING.
  • Means: An archive member is stored under a name that is not its install name (a backslash separator, an empty or '.' segment, a ./ in a wheel), so it is listed under the name an installer writes it to; or a member named as a directory (ending in /) carries bytes, which no installer writes.
  • SBOM effect: none: the SBOM states what the input holds.
  • Pitloom did: Listed a non-conforming member under its install name (on the --allow-build route, copied it there), as the line says. Left a directory entry's bytes out (not listed, not copied). The archive is not changed.
  • Tell the user: what the line says only if they asked about the archive's members: the SBOM names each file as it installs. If the archive is theirs, they rebuild it with a conforming build tool; else they ask whoever published it. Do not repack the archive 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: ARCHIVE='<archive>' ENTRY='<member>': non-conforming name; listed as '<install-name>' [archive-member-invalid]
WARNING: ARCHIVE='<archive>' ENTRY='<member>': non-conforming name; copied as '<install-name>' [archive-member-invalid]
WARNING: ARCHIVE='<archive>' ENTRY='<member>': directory entry carries data; not listed [archive-member-invalid]
WARNING: ARCHIVE='<archive>' ENTRY='<member>': directory entry carries data; not copied [archive-member-invalid]

archive-member-unsafe

  • Level: WARNING.
  • Means: An archive member's name has no install location an installer could write it to: absolute (a leading / or a drive such as C:), with a '..' segment, holding a NUL, or empty once normalised; or, on the --allow-build route, it resolves outside the directory Pitloom extracts the built wheel into (a link on the way).
  • SBOM effect: thinner: the SBOM says less than reading the input would.
  • Pitloom did: Left the member out of the SBOM (not listed); on the --allow-build route, did not extract it from the built wheel (not copied), so no file of the SBOM comes from it. The archive is not changed: an embed rewrites the wheel with every member it had.
  • Tell the user: which member was left out and why, as the line says: such a name can write outside an install directory, and a conforming build tool does not write one. If the archive is theirs, they rebuild it with a conforming build tool; else they ask whoever published it. Do not repack the archive 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: ARCHIVE='<archive>' ENTRY='<member>': no safe install location; not listed [archive-member-unsafe]
WARNING: ARCHIVE='<archive>' ENTRY='<member>': no safe install location; not copied [archive-member-unsafe]
WARNING: ARCHIVE='<archive>' ENTRY='<member>': resolves outside the extraction directory; not copied [archive-member-unsafe]

dist-info-ambiguous

  • Level: ERROR, WARNING. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
  • Means: A wheel has several top-level .dist-info directories and its file name does not pick one: several match the name and version it names (PEP 503 names, PEP 440 versions), the file name is not a PEP 427 wheel name, or none matches it. Pitloom does not guess which is the wheel's own.
  • SBOM effect: thinner: the SBOM says less than reading the input would.
  • Pitloom did: As an ERROR (verify-wheel, validate-wheel, embed-wheel, wheel --embed), refused the wheel: nothing is written or changed, the command exits 1 and the library raises WheelRefused, a ValueError carrying the code. As a WARNING (loom wheel, generate of a wheel), wrote the SBOM with the wheel's files and no name, version or other METADATA of the package (named unknown).
  • Tell the user: Pitloom cannot tell the wheel's own .dist-info, as the line says. They rebuild the wheel with a conforming build tool, or rename the file to the PEP 427 name of its own .dist-info directory, and run again. Do not rename or repack the wheel for them; ask first, and with nobody to ask, report it only.
  • Lines:
ERROR: ARCHIVE='<archive>': several top-level .dist-info directories match the file name; wheel refused [dist-info-ambiguous]
WARNING: ARCHIVE='<archive>': several top-level .dist-info directories match the file name; identity unknown [dist-info-ambiguous]
ERROR: ARCHIVE='<archive>': the file name is not a wheel name and several top-level .dist-info directories exist; wheel refused [dist-info-ambiguous]
WARNING: ARCHIVE='<archive>': the file name is not a wheel name and several top-level .dist-info directories exist; identity unknown [dist-info-ambiguous]
ERROR: ARCHIVE='<archive>': several top-level .dist-info directories, none the one the file name names; wheel refused [dist-info-ambiguous]
WARNING: ARCHIVE='<archive>': several top-level .dist-info directories, none the one the file name names; identity unknown [dist-info-ambiguous]

dist-info-conflict

  • Level: WARNING.
  • Means: A wheel's PEP 427 file name names a package and version whose .dist-info directory the wheel does not hold; it holds exactly one other top-level .dist-info, which Pitloom reads as the wheel's own (a renamed file, or a wheel built under another name).
  • SBOM effect: weaker: what the SBOM says is less sure.
  • Pitloom did: Read the one .dist-info the line names as the wheel's own; the command goes on and its exit status does not change.
  • Tell the user: the file name and the wheel's metadata disagree, as the line says. If the file was renamed, they give it back its PEP 427 name; else they rebuild the wheel. Do not rename it for them; ask first, and with nobody to ask, report it only.
  • Lines:
WARNING: ARCHIVE='<archive>': the file name names no top-level .dist-info; using '<member>' [dist-info-conflict]

dist-info-missing

  • Level: ERROR, WARNING. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
  • Means: A wheel has no top-level .dist-info directory (one vendored under a package is never the wheel's own), or its own .dist-info has no METADATA member (the line names the member looked for). A conforming wheel has both.
  • SBOM effect: thinner: the SBOM says less than reading the input would.
  • Pitloom did: As an ERROR (verify-wheel, validate-wheel, embed-wheel, wheel --embed), refused the wheel: nothing is written or changed, the command exits 1 and the library raises WheelRefused, a ValueError carrying the code. As a WARNING (loom wheel, generate of a wheel), wrote the SBOM with the wheel's files and no name, version or other METADATA of the package (named unknown).
  • Tell the user: the wheel lacks the metadata a wheel must carry, as the line says. They rebuild the wheel with a conforming build tool, or rename the file to the PEP 427 name of its own .dist-info directory, and run again. Do not rename or repack the wheel for them; ask first, and with nobody to ask, report it only.
  • Lines:
ERROR: ARCHIVE='<archive>': no top-level .dist-info directory; wheel refused [dist-info-missing]
WARNING: ARCHIVE='<archive>': no top-level .dist-info directory; identity unknown [dist-info-missing]
WARNING: ARCHIVE='<archive>' ENTRY='<member>': not in the wheel; identity unknown [dist-info-missing]

wheel-invalid

  • Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
  • Means: A wheel's member names do not let an installer tell its files apart: two members have one name, exactly or once read as an installer on Windows reads it (a/M and a\M), or a name holds a NUL, where Python's zipfile cuts the name, so the member installs under a shorter name that may be another member's. No reader can tell which member is meant.
  • SBOM effect: not-written: no SBOM is written for the input.
  • Pitloom did: Refused the wheel as a whole: no SBOM is written and no wheel is changed; the command exits 1 (a batch goes on with the next wheel and exits 1 at the end), and the library raises WheelRefused, a ValueError carrying the code. The model scan of a wheel lists no file of it.
  • Tell the user: the wheel's member names collide, as the line says; a conforming build tool does not write such a wheel. They rebuild the wheel with a conforming build tool, or ask whoever published it for a good copy, and run again. Do not repair or rename the wheel's members for them; ask first, and with nobody to ask, report it only.
  • Lines:
ERROR: ARCHIVE='<archive>' ENTRY='<member>': NUL in member name; wheel refused [wheel-invalid]
ERROR: ARCHIVE='<archive>' ENTRY='<member>': duplicate member name; wheel refused [wheel-invalid]

wheel-unreadable

  • Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
  • Means: A wheel could not be read: the file is not a ZIP archive Python can open (damaged, cut short, another format named .whl, a member name flagged UTF-8 that is not), or one of its members could not be read (damaged, encrypted, a compression Python cannot read, a RECORD that is not UTF-8). The line names the exception's type only, never its text, which quotes member names.
  • SBOM effect: not-written: no SBOM is written for the input.
  • Pitloom did: Refused the wheel as a whole: no SBOM is written and no wheel is changed; the command exits 1 (a batch goes on with the next wheel and exits 1 at the end), and the library raises WheelRefused, a ValueError carrying the code. The model scan of a wheel lists no file of it.
  • Tell the user: the wheel is damaged, as the line says. They rebuild the wheel with a conforming build tool, or ask whoever published it for a good copy, and run again. Do not repair or rename the wheel's members for them; ask first, and with nobody to ask, report it only.
  • Lines:
ERROR: ARCHIVE='<archive>': could not open as a ZIP archive (<exception-type>); wheel refused [wheel-unreadable]
ERROR: ARCHIVE='<archive>' ENTRY='<member>': could not read (<exception-type>); wheel refused [wheel-unreadable]

wheel-unusable

  • Level: ERROR. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
  • Means: A wheel to embed an SBOM in stores a member of its own .dist-info directory under a name that is not its install name (a backslash, a ./ or an empty segment): the embed rewrites RECORD by install name, so it could not tell which entry it rewrites. Only an embed refuses it ('embed-wheel', 'wheel --embed'); a read lists the member under its install name.
  • SBOM effect: not-written: no SBOM is written for the input.
  • Pitloom did: Refused the wheel as a whole: no SBOM is written and no wheel is changed; the command exits 1 (a batch goes on with the next wheel and exits 1 at the end), and the library raises WheelRefused, a ValueError carrying the code. The model scan of a wheel lists no file of it.
  • Tell the user: the wheel cannot take an SBOM, as the line says. They rebuild the wheel with a conforming build tool, or ask whoever published it for a good copy, and run again. Do not repair or rename the wheel's members for them; ask first, and with nobody to ask, report it only.
  • Lines:
ERROR: ARCHIVE='<archive>' ENTRY='<member>': .dist-info member under a non-conforming name; wheel refused [wheel-unusable]

wheel-unusable/signed

  • Level: ERROR, INFO. As an ERROR, the command stops for that input and writes nothing for it (exit 1).
  • Means: A wheel to embed an SBOM in carries a signature of its RECORD (RECORD.jws or RECORD.p7s, PEP 427). The embed rewrites RECORD, so the signature would no longer verify. As an INFO line, --allow-signed-wheel was given and the embed removed the signature.
  • SBOM effect: not-written: no SBOM is written for the input.
  • Pitloom did: As an ERROR, refused the wheel: no wheel is changed, the command exits 1 and the library raises WheelRefused, a ValueError carrying the code. As an INFO line, embedded the SBOM, rewrote RECORD and removed the signature: the wheel is unsigned.
  • Tell the user: the wheel is signed and an embed would break the signature, as the line says. Only with their say: run again with --allow-signed-wheel, which removes the signature, then they re-sign the wheel with their own key; after an INFO line, they re-sign it before publishing. Do not pass --allow-signed-wheel or sign for them; ask first, and with nobody to ask, report it only.
  • Lines:
ERROR: ARCHIVE='<archive>' ENTRY='<member>': signs the RECORD the embed rewrites; <option> removes it (re-sign the wheel after); wheel refused [wheel-unusable/signed]
INFO: ARCHIVE='<archive>' ENTRY='<member>': signature removed; re-sign the wheel [wheel-unusable/signed]