View Single Post
Old 06-25-2022, 10:07 AM   #1071
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
Quote:
Originally Posted by cedm View Post
I tested the beta version and the "Customize plugin" is working properly but when I want to fetch the annotations from my book reader (Kobo Libra 2), there is another error message

Code:
calibre, version 5.42.0
ERROR: Unhandled exception: <b>AttributeError</b>:'KOBOTOUCH' object has no attribute 'current_friendly_name'

calibre 5.42  embedded-python: False is64bit: True
Linux-5.18.5-200.fc36.x86_64-x86_64-with-glibc2.35 Linux ('64bit', 'ELF')
('Linux', '5.18.5-200.fc36.x86_64', '#1 SMP PREEMPT_DYNAMIC Thu Jun 16 14:51:11 UTC 2022')
Python 3.10.5
Interface language: None
Successfully initialized third party plugins: Annotations (1, 17, 4)
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 399, in fetch_usb_device_annotations
    self.selected_mi = get_selected_book_mi(self.get_options(),
  File "calibre_plugins.annotations.action", line 675, in get_options
    self.opts['device_name'] = self.connected_device.current_friendly_name
AttributeError: 'KOBOTOUCH' object has no attribute 'current_friendly_name'
That's embarrassing. I didn't even test it against my own device

The attached beta works here. And should work for MTP devices as well. Let me know who it goes.
Attached Files
File Type: zip Annotations-beta.zip (681.2 KB, 495 views)
davidfor is offline   Reply With Quote