Quote:
Originally Posted by KevinH
Maybe a platform specific python or java issue?
Actually from eyeballing the comments in plugin.py, Usage errors do not set a filename (sometimes?) and if they happen first (before any other error in that file) then offlst will not get initialized resulting in the error message you got (a guess on my part).
Simply setting offlst to [0] right where lastfilename is first set to None might help but I have no computer to test that with.
|
I went back to Kevin's post and thought I'd give it a try- I went into plugin.py and added offlst = [0] at line 541 -
# used for coffset calculation
lastfilename = None
offlst = [0]
I didn't touch anything else in the file.
Since then, I have had six successful runs on six different epub files and all with usage set to true and clipboard_copy set to true. Each time, the epubcheck plugin run in Sigil completed ok with all the usages listed in the validation results in a nice duck egg blue.
Only one of these gave a clipboard record, the last one.
On the last one of these, I followed up with a command line run and the validation completed ok with no errors or warnings detected.
So there appears to be something in Kevin's suggestion. Hope this helps, Doitsu.