Originally Posted by husain
I am getting the following error when I attempt to fetch the annotation from the device (Kindle Scribe)
calibre, version 7.20.0
ERROR: Unhandled exception: <b>AttributeError</b>:'MTP_DEVICE' object has no attribute 'create_annotations_path'
calibre 7.20 embedded-python: False
Linux-6.11.2-1-default-x86_64-with-glibc2.40 Linux ('64bit', 'ELF')
('Linux', '6.11.2-1-default', '#1 SMP PREEMPT_DYNAMIC Fri Oct 4 17:37:58 UTC 2024 (38c846e)')
Python 3.11.10
Interface language: None
EXE path: /usr/bin/python3.11
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (2, 16, 0) && DeDRM (10, 0, 3) && Package KFX (from KFX Input) (2, 16, 0) && Annotations (1, 17, 13) && KFX metadata reader (from KFX Input) (2, 16, 0) && From KFX (2, 16, 0) && KFX Input (2, 16, 0) && Set KFX metadata (from KFX Output) (2, 11, 0) && KFX Output (2, 11, 0) && KindleUnpack - The Plugin (0, 83, 1) && Obok DeDRM (10, 0, 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_connect ed_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 623, in get_annotated_books_on_usb_device
ra.get_installed_books()
File "/tmp/calibre_annotations_plugin/Kindle.py", line 154, in get_installed_books
File "calibre_plugins.annotations.reader_app_suppor t", line 803, in get_path_map
path_map = generate_annotation_paths(ids, db)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.annotations.reader_app_suppor t", line 788, in generate_annotation_paths
a_path = self.device.create_annotations_path(mi, device_path=path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MTP_DEVICE' object has no attribute 'create_annotations_path'
|