Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-11-2025, 04:05 AM   #1216
benweasel
Junior Member
benweasel began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2025
Device: Pocketbook PB634
Question Pocketbook PB634 Annotations Fetching Error

Hi and thanks in advance for your time and patience.
I'm using a Pocketbook PB634 on Calibre 8.8 - I manage to load books with no issues at all but I'm unable to fetch annotations from the books. This is the error I get

Eccezione non gestita stands for "Unmanaged exception"

Code:
calibre, version 8.8.0
ERRORE: Eccezione non gestita: <b>UnboundLocalError</b>:cannot access local variable 'finish' where it is not associated with a value

calibre 8.8  embedded-python: True
macOS-15.5-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '24.5.0', 'Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:26 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8112')
Python 3.11.12
OSX: ('15.5', ('', '', ''), 'arm64')
Interface language: it
EXE path: /Applications/calibre.app/Contents/MacOS/calibre
Successfully initialized third party plugins: Annotations (1, 17, 13) && Find Duplicates (1, 10, 9) && Goodreads (1, 8, 3) && Goodreads Sync (1, 16, 11) && PocketBook Improved Device Interface (1, 0, 4) && Pocketbook Collections (1, 2, 6)
Traceback (most recent call last):
  File "calibre_plugins.annotations.action", line 363, in fetch_usb_connected_device_annotations
    self.fetch_usb_device_annotations(self.get_connected_device_primary_name())
  File "calibre_plugins.annotations.action", line 407, in fetch_usb_device_annotations
    annotated_book_list = self.get_annotated_books_on_usb_device(reader_app)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.annotations.action", line 624, in get_annotated_books_on_usb_device
    ra.get_active_annotations()
  File "/var/folders/q5/z79z5dzx1fl4b8fv0ws2z38r0000gn/C/calibre-p0rdivjv/calibre_annotations_plugin/PocketBook.py", line 62, in get_active_annotations
  File "/var/folders/q5/z79z5dzx1fl4b8fv0ws2z38r0000gn/C/calibre-p0rdivjv/calibre_annotations_plugin/PocketBook.py", line 344, in _fetch_annotations
  File "/var/folders/q5/z79z5dzx1fl4b8fv0ws2z38r0000gn/C/calibre-p0rdivjv/calibre_annotations_plugin/PocketBook.py", line 419, in _read_database_annotations
UnboundLocalError: cannot access local variable 'finish' where it is not associated with a value
Tried searching in the forum but no success so far. Any clues?

Thanks
benweasel is offline   Reply With Quote
Old 08-16-2025, 01:32 PM   #1217
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 913
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
I think the clue is here:
UnboundLocalError: cannot access local variable 'finish' where it is not associated with a value
This means that within the Annotations plugin (specifically in the plugin's PocketBook.py file), there is a variable called finish that the code attempts to use, but it was never defined in certain cases.
dunhill is offline   Reply With Quote
Old 09-13-2025, 08:39 PM   #1218
kuttan
Junior Member
kuttan began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2025
Device: Kobo
TypeError 'str' object is not callable error when getting annotation

Dear all

I am the below error when i installed the annotation plugin in Calibre and get annotation.

I have setup new filed in calibre for pulling annotations. I have connected Kobo Libre Color. Please suggest.

Thank you.

Code:
calibre, version 8.10.0
ERROR: Unhandled exception: <b>TypeError</b>:'str' object is not callable

calibre 8.10  embedded-python: True
Linux-6.15.1-surface-2-x86_64-with-glibc2.36 Linux ('64bit', 'ELF')
('Linux', '6.15.1-surface-2', '#2 SMP PREEMPT_DYNAMIC Tue Jun 24 21:02:07 UTC 2025')
Python 3.11.12
Interface language: None
EXE path: /opt/calibre/bin/calibre
Successfully initialized third party plugins: Annotations (1, 17, 13) && Kobo Utilities (2, 24, 3)
Traceback (most recent call last):
  File "calibre_plugins.annotations.action", line 363, in fetch_usb_connected_device_annotations
    self.fetch_usb_device_annotations(self.get_connected_device_primary_name())
  File "calibre_plugins.annotations.action", line 407, in fetch_usb_device_annotations
    annotated_book_list = self.get_annotated_books_on_usb_device(reader_app)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.annotations.action", line 624, in get_annotated_books_on_usb_device
    ra.get_active_annotations()
  File "/tmp/calibre-zng_zxr5/calibre_annotations_plugin/KoboTouch.py", line 72, in get_active_annotations
  File "/tmp/calibre-zng_zxr5/calibre_annotations_plugin/KoboTouch.py", line 378, in _fetch_annotations
TypeError: 'str' object is not callable
kuttan is offline   Reply With Quote
Old 09-14-2025, 08:24 AM   #1219
cerebrollywood
Junior Member
cerebrollywood began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2023
Device: Kobo Libra 2
Hello everyone,

thanks to anyone involved in the making and sharing of this plugin. I'm not a tech savvy person but you this whole thread helped me retrieving my highlights and save them in Calibre (FINALLY!!!).

I do have a question, though. Now that the plugin created the custom column with the Annotations, how do I "import" them on a secondary device?

I have two Kobo, I use both of them to read depending if I'm out and about or just at home chilling. Through the KoboUtilities plugin I managed to sync the reading point between books. I was hoping to sync the highlights/annotations using this plugin. Is that possible? If so, how should I do it? So far, nothing I tried was successful (again, not very techy!)

Thank you so much
cerebrollywood is offline   Reply With Quote
Old 09-15-2025, 05:25 AM   #1220
aik099
Enthusiast
aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!
 
Posts: 35
Karma: 100180
Join Date: Apr 2020
Device: none
Quote:
Originally Posted by kuttan View Post
Dear all

I am the below error when i installed the annotation plugin in Calibre and get annotation.

I have setup new filed in calibre for pulling annotations. I have connected Kobo Libre Color. Please suggest.

Thank you.

Code:
calibre, version 8.10.0
ERROR: Unhandled exception: <b>TypeError</b>:'str' object is not callable

calibre 8.10  embedded-python: True
Linux-6.15.1-surface-2-x86_64-with-glibc2.36 Linux ('64bit', 'ELF')
('Linux', '6.15.1-surface-2', '#2 SMP PREEMPT_DYNAMIC Tue Jun 24 21:02:07 UTC 2025')
Python 3.11.12
Interface language: None
EXE path: /opt/calibre/bin/calibre
Successfully initialized third party plugins: Annotations (1, 17, 13) && Kobo Utilities (2, 24, 3)
Traceback (most recent call last):
  File "calibre_plugins.annotations.action", line 363, in fetch_usb_connected_device_annotations
    self.fetch_usb_device_annotations(self.get_connected_device_primary_name())
  File "calibre_plugins.annotations.action", line 407, in fetch_usb_device_annotations
    annotated_book_list = self.get_annotated_books_on_usb_device(reader_app)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.annotations.action", line 624, in get_annotated_books_on_usb_device
    ra.get_active_annotations()
  File "/tmp/calibre-zng_zxr5/calibre_annotations_plugin/KoboTouch.py", line 72, in get_active_annotations
  File "/tmp/calibre-zng_zxr5/calibre_annotations_plugin/KoboTouch.py", line 378, in _fetch_annotations
TypeError: 'str' object is not callable
This question has been answered before in https://www.mobileread.com/forums/sh...postcount=1214 .
aik099 is offline   Reply With Quote
Old 09-15-2025, 05:26 AM   #1221
aik099
Enthusiast
aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!aik099 rocks like Gibraltar!
 
Posts: 35
Karma: 100180
Join Date: Apr 2020
Device: none
Quote:
Originally Posted by cerebrollywood View Post
Hello everyone,

thanks to anyone involved in the making and sharing of this plugin. I'm not a tech savvy person but you this whole thread helped me retrieving my highlights and save them in Calibre (FINALLY!!!).

I do have a question, though. Now that the plugin created the custom column with the Annotations, how do I "import" them on a secondary device?

I have two Kobo, I use both of them to read depending if I'm out and about or just at home chilling. Through the KoboUtilities plugin I managed to sync the reading point between books. I was hoping to sync the highlights/annotations using this plugin. Is that possible? If so, how should I do it? So far, nothing I tried was successful (again, not very techy!)

Thank you so much
No. This plugin can only write annotations into Calibre from the Device. Not write them back to Device.
aik099 is offline   Reply With Quote
Old 09-24-2025, 03:07 AM   #1222
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,066
Karma: 11391183
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Quote:
Originally Posted by aik099 View Post
This question has been answered before in https://www.mobileread.com/forums/sh...postcount=1214 .
I had the same issue referred by kuttan, and can confirm that with the beta version the plugin works! Thank you,Terisa, above all!
Leonatus is offline   Reply With Quote
Old 09-24-2025, 08:23 AM   #1223
bopuc
livin' with ebooks
bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'
 
bopuc's Avatar
 
Posts: 42
Karma: 42048
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
Quote:
Originally Posted by Terisa de morgan View Post
Can you try if this plugin works?
As for many others, this hotfix works for me. Thank you very very much, Terisa.

Can you kindly confirm that the only change you made for this fix is in `readers/KoboTouch.py` at lines 378-379?

Code:
#with closing(apsw.Connection(self.device.device_database_path())) as connection:
with closing(apsw.Connection(self.device.device_database_path)) as connection:
(I've run a comparison between the last officially released plugin code and your "beta" hotfix and that's the only thing that shows up. I just want to make sure.
bopuc is offline   Reply With Quote
Old 09-24-2025, 09:37 AM   #1224
bopuc
livin' with ebooks
bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'
 
bopuc's Avatar
 
Posts: 42
Karma: 42048
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
Quote:
Originally Posted by PeterT View Post
I'll see what I can do to get this changed to a new version number and added to the first post.
Hello PeterT!
Do you have such access to the original repo?

(Generally to everyone here)

There's a fair number of us who depend on this plugin (or want to) and it may be time to pick it up, dust it off and carry it forward.

I think one way to do this would be to fork the source to an "organization" repo, and have at least 3 people be admins on that, sharing maintainer duties.

It'd also be great if individual contributors/maintainers for the various Reader support classes could step up (I don't think any single person should be expected to support all reader devices/apps…).

I could set that up and help with governance/management. It'd at least be a first step. Then we could merge in the various hotfixes and pull requests that have surfaced in the last few years and release something reliable again.

Last edited by bopuc; 09-24-2025 at 11:26 AM. Reason: typo
bopuc is offline   Reply With Quote
Old 09-24-2025, 09:49 AM   #1225
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,623
Karma: 79436940
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Oops I'd forgotten about this. Am out right now but will check when I get home
PeterT is offline   Reply With Quote
Old 09-24-2025, 10:29 AM   #1226
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,672
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by bopuc View Post
As for many others, this hotfix works for me. Thank you very very much, Terisa.

Can you kindly confirm that the only change you made for this fix is in `readers/KoboTouch.py` at lines 378-379?

Code:
#with closing(apsw.Connection(self.device.device_database_path())) as connection:
with closing(apsw.Connection(self.device.device_database_path)) as connection:
(I've run a comparison between the last officially released plugin code and your "beta" hotfix and that's the only thing that shows up. I just want to make sure.
Yes, that's the only change as it was the issue. I don't know the plugin but I'm able to debug that and I think I asked about the element
Terisa de morgan is offline   Reply With Quote
Old 09-24-2025, 10:36 AM   #1227
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,066
Karma: 11391183
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Quote:
Originally Posted by bopuc View Post
There's a fair number of us who depend on this plugin (or want to) and it may be time to pick it up, dust it off and carry it forward.
In the meantime, Kobo owners can switch to the Kobo Utilities plugin, which provides a similar feature.
Leonatus is offline   Reply With Quote
Old 09-24-2025, 12:41 PM   #1228
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,672
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by Leonatus View Post
In the meantime, Kobo owners can switch to the Kobo Utilities plugin, which provides a similar feature.
Has the plugin changed? Before, it linked with this plugin, it didn't collect Annotations itself.
Terisa de morgan is offline   Reply With Quote
Old 09-25-2025, 01:38 AM   #1229
bopuc
livin' with ebooks
bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'bopuc understands when you whisper 'The dog barks at midnight.'
 
bopuc's Avatar
 
Posts: 42
Karma: 42048
Join Date: Jun 2014
Location: Berlin (DE), winters in Aomori (JP), from Montréal (CA)
Device: Libra2, KOA
Quote:
Originally Posted by Leonatus View Post
In the meantime, Kobo owners can switch to the Kobo Utilities plugin, which provides a similar feature.
Kobo Utilities allows only either to copy/paste formatted annotations from selected book(s) and backup of annotation file. Both these options require further manual processing and use totally different formats from what Annotations uses when it (automatically) puts the annotations in the Calibre database.

I want to make it *easier* to manage annotations (90% of the value, for me, in reading ebooks), not harder.
bopuc is offline   Reply With Quote
Old 09-25-2025, 03:30 AM   #1230
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,066
Karma: 11391183
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Quote:
Originally Posted by Terisa de morgan View Post
Has the plugin changed? Before, it linked with this plugin, it didn't collect Annotations itself.
As I got the above mentioned error message, I tried the KoboUtilities plugin, and it worked. I'm not a technic, so I can't give further explications, but the remarks bopuc made are pretty correct, as far as I can see.
Leonatus is offline   Reply With Quote
Reply

Tags
sampleexportingapp


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 527 08-15-2025 01:36 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Annotations (closed) GRiker Plugins 68 06-17-2014 06:11 AM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 12:32 PM.


MobileRead.com is a privately owned, operated and funded community.