Quote:
Originally Posted by dsestero
Hi David, unfortunately last beta presents the following error when 'Fetch annotations from device' is selected:
Code:
calibre, version 3.8.0
ERRORE: Eccezione non gestita: <b>TypeError</b>:_log() takes at most 2 arguments (3 given)
calibre 3.8 embedded-python: True is64bit: True
Darwin-15.6.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '15.6.0', 'Darwin Kernel Version 15.6.0: Sun Jun 4 21:43:07 PDT 2017; root:xnu-3248.70.3~1/RELEASE_X86_64')
Python 2.7.12
OSX: ('10.11.6', ('', '', ''), 'x86_64')
Interface language: it
Successfully initialized third party plugins: Generate Cover (1, 5, 21) && Ex Libris (1, 0, 19) && Reading List (1, 6, 6) && EpubMerge (2, 1, 1) && Count Pages (1, 8, 0) && KFX Output (1, 10, 0) && Annotations (1, 6, 10)
Traceback (most recent call last):
File "calibre_plugins.annotations.action", line 360, in fetch_usb_device_annotations
File "calibre_plugins.annotations.action", line 555, in get_annotated_books_on_usb_device
File "/var/folders/1t/t88g5dl97jd29gq0kxqldc6w0000gn/T/calibre_annotations_plugin/Kindle.py", line 148, in get_installed_books
File "/var/folders/1t/t88g5dl97jd29gq0kxqldc6w0000gn/T/calibre_annotations_plugin/Kindle.py", line 272, in _get_installed_books
File "/var/folders/1t/t88g5dl97jd29gq0kxqldc6w0000gn/T/calibre_annotations_plugin/Kindle.py", line 248, in resolve_paths
TypeError: _log() takes at most 2 arguments (3 given)
and then it hangs.
|

Not paying attention to the log statements. The attached should fix it.
Quote:
I am curious about your hypothesis because I have books downloaded in KFX format on the device and that same book available in different formats, including KFX, in the Calibre library. I will try with next beta.
|
Reading the code seems to suggest this, but I'll need to see a log to be sure.
Quote:
The strange thing is that it fetches books that are not marked as both in Calibre and device (though they are there: different formats and/or different title/author data order) while it does'nt fetch books marked as in both or synced.
|
I'm not that surprised to hear either of those. The book matching is different. There is some attempt in the plugin to match on ids, but it will fall back to title and author. If there are examples of each of these in the log, can you mark a couple. That should help me see what is happening.