View Single Post
Old 05-23-2023, 12:24 PM   #1138
tsundoku
Junior Member
tsundoku began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2023
Location: PNW
Device: Kindle Oasis
The books in question are all on my physical Kindle device. I can open them and view my annotations (highlights) on my Kindle without issue.

(Note: 'Fetch annotations from connected device' is the only option available in the plug-in for me. Not sure if this is relevant or not, but the documentation for the plug-in seems to indicate that there should be an 'Import Annotations From > Kindle' command available as well.)

I tried running Calibre and the plug-in in debug mode to see if I could figure out what is happening. Here's an excerpt from the output log file using the Atomic Habits book as an example:

Job: 0 Get device information started
DeviceJob: 0 Get device information done, calling callback
DeviceJob: 0 Get device information callback returned
Job: 1 Set library information started
DeviceJob: 1 Set library information done, calling callback
DeviceJob: 1 Set library information callback returned
Job: 2 Get list of books on device started
DEBUG: 6.2 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
DEBUG: 6.2 USBMS: dirs are: H:\ documents
DEBUG: 6.2 USBMS: scan from root False H:\documents
DEBUG: 6.3 USBMS: count found in cache: 117, count of files in metadata: 117, need_sync: False
DEBUG: 6.3 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 6.3 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG: 6.3 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
DeviceJob: 2 Get list of books on device done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 117
DeviceJob: set_books_in_library finished: time= 0.017537832260131836
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
READING LIST: Metadata available: {'main': {'device_store_uuid': 'e5b78a44-d76d-43d6-8e9a-aa83b1ba5c25', 'device_name': 'Amazon Kindle', 'location_code': 'main', 'last_library_uuid': None, 'calibre_version': '6.17.0', 'date_last_connected': '2023-05-23T15:10:13.127583+00:00', 'prefix': 'H:/'}}
READING LIST: Sync Now - force_sync= False
DeviceJob: 2 Get list of books on device callback returned
Job: 0 Get device information finished
No details available.
Job: 2 Get list of books on device finished
No details available.
Job: 1 Set library information finished
...
DEBUG: 39.8 resolve_paths. id=201, path=C:\<storage>\Clear, James\Atomic Habits - James Clear.bookmark
DEBUG: 39.8 resolve_paths. fmt=azw3
DEBUG: 39.8 resolve_paths. fmt=epub
DEBUG: 39.8 resolve_paths. looking for book on device: book_path=H:\documents\Clear, James\Atomic Habits - James Clear.bookmark
DEBUG: 39.8 resolve_paths. looking for book on device: this_fmt=H:\documents\Clear, James\Atomic Habits - James Clear.azw3
...
DEBUG: 42.5 Annotation for Title=='Atomic Habits'
DEBUG: 42.5 Searching for Title=='Atomic Habits'
DEBUG: 42.5 Title not found in books on device

I don't fully understand the debug output, but it seems clear from the final few lines that it's simply not finding the book on the device. Also, there's a section in the debug output that appears to iterate through the titles on the device and retrieve the metadata for each one - but Atomic Habits is not included in this list.

FWIW, this book was purchased on Amazon.
tsundoku is offline   Reply With Quote