View Single Post
Old 09-15-2021, 05:57 PM   #980
lsacher
Junior Member
lsacher began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2017
Device: iPhone 6
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
Attached Files
File Type: txt My_Actions.txt (586 Bytes, 284 views)
File Type: txt Console_Listing.txt (3.6 KB, 289 views)
File Type: epub A Book With Some Exported Annot - John Smith.epub (3.9 KB, 414 views)
lsacher is offline   Reply With Quote