EPUBCheck PKG-018: EPUB file to check not found
Updated:
EPUBCheck PKG-018 is a fatal error message: “The EPUB file could not be found.” EPUBCheck could not find the EPUB file you asked it to check. It is a fatal error about the command, not about the book: nothing was validated.
The official message
The EPUB file could not be found.
- Default severity
- Fatal error. EPUBCheck could not continue checking this part of the EPUB. The file is invalid.
- EPUBCheck version
- 5.4.0
Typical causes
- A typo in the path or the file name, or a path relative to a different folder than the one EPUBCheck runs in.
- Spaces or special characters in the path that the shell split or interpreted.
- The file was moved, renamed or deleted before EPUBCheck ran.
How to fix it
- Check that the file exists at the path you passed, for example with
lson the same path. - Quote the path if it contains spaces:
java -jar epubcheck.jar "My Book.epub". - Run EPUBCheck again with the corrected path.
When it's not this
If the file is found but cannot be read as a ZIP, that is PKG-003 or PKG-004.
Terms used here
Other PKG messages
PKG-017Uncommon EPUB file extension.PKG-016Use only lowercase characters for the EPUB file extension for maximum compatibility.PKG-020OPF file "…" could not be found.PKG-021Corrupted image file encountered.PKG-014The EPUB contains empty directory "…".PKG-022Wrong file extension for image. The image is a "…" file but has the file extension "…".
Sources
Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EpubCC.