Quote:
Originally Posted by Kicweed
Hey @davidfor, thanks for all the effort you've put in this :-)
I've been having the following issue with this plugin lately and I don't know if there's something I can do from my end to fix it.
I'm on Calibre 3.48, with the 1.10.0 version of the plugin and a Kobo Forma on 4.18.13737.
The Import Annotations screen appears normally (the one where you see a list of all the books with the number of annotations for each and you can selectively preview for each book).
Unfortunately, during the next step (after pressing the Import Annotations button) the process starts but fails while importing, with the following message:
Code:
calibre, version 3.48.0
Error fetching annotations: Unable to fetch annotations from Kobo Forma.
Traceback (most recent call last):
File "calibre_plugins.annotations.action", line 311, in fetch_device_annotations
File "calibre_plugins.annotations.action", line 1052, in process_selected_books
File "calibre_plugins.annotations.action", line 160, in add_annotations_to_calibre
File "calibre_plugins.annotations.annotations", line 297, in merge_annotations
UnboundLocalError: local variable 'regurgitated_soup' referenced before assignment
I've enabled the "Enable debug" option but I don't know where the log is kept to see whether there's any additional helpful information.
Do you have any idea what could be breaking so I could try to fix it?
|
That looks like a problem in the code. A case isn't being handled properly when attempting to merge the existing annotations with new ones. But, I need a little bit more information to work out what it is. Can you run calibre in debug mode and do the fetch again? You can do this by right-clicking on the preferences button and choosing "Restart in debug mode". Calibre will restart and display a message about the log. Then connect the device and try to fetch the annotations. After the error is displayed, close calibre and it will display a log. Post that or PM me the contents to look at.