View Single Post
Old 05-12-2025, 05:05 PM   #1200
_mike_
Junior Member
_mike_ began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2025
Device: Kindle Paperwhite (12th gen)
Hi

I'm using Calibre 8.3 with a Kindle Paperwhite (12th gen) and get a "AttributeError: 'MTP_DEVICE' object has no attribute 'create_annotations_path" error when trying to fetch annotations from the device:

Code:
calibre, version 8.3.0
ERROR: Unhandled exception: <b>AttributeError</b>:'MTP_DEVICE' object has no attribute 'create_annotations_path'

calibre 8.3  embedded-python: True
macOS-15.4.1-arm64-arm-64bit Darwin ('64bit', '')
('Darwin', '24.4.0', 'Darwin Kernel Version 24.4.0: Fri Apr 11 18:33:47 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T6000')
Python 3.11.12
OSX: ('15.4.1', ('', '', ''), 'arm64')
Interface language: None
EXE path: /Applications/calibre.app/Contents/MacOS/calibre
Successfully initialized third party plugins: Annotations (1, 17, 13) && Count Pages (1, 13, 6) && Goodreads (1, 8, 3) && Set KFX metadata (from KFX Output) (2, 15, 0) && KFX Output (2, 15, 0)
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 623, in get_annotated_books_on_usb_device
    ra.get_installed_books()
  File "/var/folders/fz/tns479750ljd_y7lwb_7x58w0000gn/C/calibre-22k9rrri/calibre_annotations_plugin/Kindle.py", line 154, in get_installed_books
  File "calibre_plugins.annotations.reader_app_support", line 803, in get_path_map
    path_map = generate_annotation_paths(ids, db)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "calibre_plugins.annotations.reader_app_support", 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'
_mike_ is offline   Reply With Quote