SampleExportingApp Not Working Properly
Long time user of Calibre, but now I want to import annotations. I tried your SampleExportingApp modified to use your highlight example. Using a mockup epub of the "John Smith" book, I get as far as the Import Annotations pop-up showing all the correct info including the 3 annotations. But then I get error messages: Unable to import annotations from SampleExportingApp -and- UnboundLocalError:local variable 'updated_annorations' referenced before assignment. The console log shows:
File "calibre_plugins.annotations.annotations", line 165, in to_HTML
TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'
-and-
File "calibre_plugins.annotations.action", line 1057, in present_annotated_books
UnboundLocalError: local variable 'updated_annotations' referenced before assignment.
I'm using Windows 10 10.0.19041 [64bit] and calibre 5.27 [64bit]
Attached are the my actions, debug console listing and the mockup epub
Thanks
Larry
|