jacshore / epubcheck

Automatically exported from code.google.com/p/epubcheck
MIT License
0 stars 0 forks source link

java.lang.RuntimeException #191

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:

Windows 7 64-bit
Python 2.7

Building python script to validate all epubs in a directory and output errors 
to a text file of the same name (using stderr). My arguments seem to be correct 
as they match the arguments I use when using the tool directly in the console, 
but I receive this error:

java.lang.RuntimeException: For files other than epubs, mode must be specified! 
Default version is 3.0.
    at com.adobe.epubcheck.tool.Checker.processArguments(Checker.java:306)
    at com.adobe.epubcheck.tool.Checker.run(Checker.java:183)
    at com.adobe.epubcheck.tool.Checker.main(Checker.java:177)

Any help is appreciated.  I am happy to post my [horrid] python code to assist 
any troubleshooting.

Andrew K.

Original issue reported on code.google.com by andrewk....@gmail.com on 26 Jun 2012 at 3:57

GoogleCodeExporter commented 8 years ago
Forgot to mention epubcheck version is 3.0b4.

Cheers

Original comment by andrewk....@gmail.com on 26 Jun 2012 at 3:58

GoogleCodeExporter commented 8 years ago
Andrew, EpubCheck typically gives the "mode must be specified" when it is fed a 
directory (or a non-.epub file) as input. If you are validating unzipped EPUBs, 
use the mode switch.

Original comment by markus.g...@gmail.com on 1 Oct 2012 at 7:48