View Single Post
Old 10-03-2020, 12:49 AM   #2337
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
I have done some playing, and the problem appears to be with importing from "calibre.ebooks.oeb.polish.container". If this is done when the plugin is loaded, it will fail. If it is done later, it works. I have no idea why. I assume it is related to the thread-safe issues with importing in Windows, but, I am not sure. Or, it might just be that what we were doing was wrong.

The attached beta is a quick-and-dirty hack to move the import to when it is actually needed. I have not done much testing, but it seems to work for the few books I have tried.

If this works for others, I'll look at the other kepub plugins as well.

Last edited by davidfor; 10-10-2020 at 01:20 AM. Reason: Removed beta as problem it was testing as been solved elsewhere
davidfor is offline   Reply With Quote