View Single Post
Old 07-31-2020, 03:39 PM   #332
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 270
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by KevinH View Post
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.

Last edited by philja; 07-31-2020 at 03:43 PM. Reason: additional
philja is offline   Reply With Quote