![]() |
#391 |
Member
![]() Posts: 21
Karma: 10
Join Date: Aug 2017
Device: Kindle 2. Gen
|
For me the latest beta doesn't find any annotations whatsoever.
Here is the log: |
![]() |
![]() |
![]() |
#392 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Looks like I screwed up and took out one of the fixes for getting the type of annotations for German. Sorry. The attached beta should fix it.
|
![]() |
![]() |
Advert | |
|
![]() |
#393 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
|
Quote:
The search works as intended, and the two sentences aren't used anywhere else in the code. |
|
![]() |
![]() |
![]() |
#394 |
Enthusiast
![]() Posts: 36
Karma: 10
Join Date: Aug 2017
Location: Aosta (Italy)
Device: Kindle Voyage
|
OK David. I have my ebooks subdivided in different libraries and I work with both a GNU/Linux workstation and a Mac.
Attached you find two images from my Linux workstation showing fetched books with the previous 1.4.6 beta and the last 1.4.8 one when the library 'Informatica' is selected as current Calibre library. As a side note, I would like to mention that this window now is correctly resizable on Linux too, while previously on Linux appeared blocked with a size bigger than the screen estate. Attached you find also the Calibre log obtained enabling the plugin debug log and restarting Calibre in debug mode with the kindle connected. Furthermore, you find other two images from my Mac showing fetched books with the previous 1.4.6 beta and the last 1.4.8 one when the library ‘Calibre Library Dario’ (my main library) is selected as current Calibre library. Finally, the full MyClippings.txt is also attached. Hope you have enough information for debug :-) I would like to ask you something about the translation In the translation: what is the meaning of '&' in strings like: '&Copy to clipboard' or 'Show &details'? I noticed today that I haven't translated the words with the '&' because thought it was a kind of variable but, in fact, it appears untranslated in italian. Am I safe to translate 'Show &details' in 'Visualizza dettagli'? If the answer is yes you find attached the updated translation (without the &). Ciao, Dario |
![]() |
![]() |
![]() |
#395 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jun 2017
Device: Kindle Paperwhite
|
Quote:
![]() Thank you ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#396 |
Member
![]() Posts: 21
Karma: 10
Join Date: Aug 2017
Device: Kindle 2. Gen
|
Unfortunately the latest beta didn't resolve the issue. It still doesn't find any annotations.
|
![]() |
![]() |
![]() |
#397 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
There are a lot of errors getting the metadata. The stack dump doesn't suggest they are from the plug in, but the numbers suggest maybe they are. I've made a change in the attached beta to pass the format type when getting the metadata from the books. Hopefully that will fix it. Last edited by davidfor; 10-03-2017 at 09:08 AM. Reason: Remove beta as there is a later version. |
|
![]() |
![]() |
![]() |
#398 |
Member
![]() Posts: 21
Karma: 10
Join Date: Aug 2017
Device: Kindle 2. Gen
|
Thanks, now we're back to normal. Meaning it finds some of the annotations but not all.
Upon analysing the log file I noticed a ton of statements saying that it doesn't find the book on the device Code:
DEBUG: 27.0 Kindle:get_active_annotations()
DEBUG: 27.2 Number of entries retreived from 'My Clippings.txt'=452
DEBUG: 27.2 Annotation for Title==Italienische Reise — Band 1 (German Edition)
DEBUG: 27.2 Title not found in books on device
The log says there are 147 books on the device, but the routine titled Code:
# Add installed books to the database Could you add more log statements to figure out, why it's missing a few books? |
![]() |
![]() |
![]() |
#399 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#400 | |
Enthusiast
![]() Posts: 36
Karma: 10
Join Date: Aug 2017
Location: Aosta (Italy)
Device: Kindle Voyage
|
Quote:
email to kindle: ok sideloading mobi, azw3: ok downloading mobi, azw3: I need to investigate downloaded kfx (the format that nowadays Amazon use for most books): no Attached you find the image of the fetched books from the latest beta: like schnesim I got more annotated books fetched than with 1.4.8. Ciao, Dario |
|
![]() |
![]() |
![]() |
#401 | |
Member
![]() Posts: 21
Karma: 10
Join Date: Aug 2017
Device: Kindle 2. Gen
|
Quote:
And yes, all the 147 books are being shown in calibre. |
|
![]() |
![]() |
![]() |
#402 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
That's encouraging. It looks like we are getting closer.
The attached beta adds a lot of extra debug statements. It should show more what is going on. But, looking at the code while adding these, I can see a possibility. It looks like the code is getting all the books and formats from calibre and trying to match them to what is on the device. It looks like if there is a mismatch of formats, those books won't be found. So, if you have a MOBI in the library and a KFX on the device, it probably isn't going to be selected by the plugin. Or at least that's how I read the code. The debug statements should show if this is the case. Last edited by davidfor; 10-03-2017 at 09:07 AM. Reason: Removed beta as it was no good. |
![]() |
![]() |
![]() |
#403 |
Enthusiast
![]() Posts: 36
Karma: 10
Join Date: Aug 2017
Location: Aosta (Italy)
Device: Kindle Voyage
|
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) 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. 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. Ciao Dario Last edited by dsestero; 10-03-2017 at 08:47 AM. |
![]() |
![]() |
![]() |
#404 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
![]() Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#405 |
Enthusiast
![]() Posts: 36
Karma: 10
Join Date: Aug 2017
Location: Aosta (Italy)
Device: Kindle Voyage
|
It seems to me that the plugin is looking correctly to find books on the device on the basis of known patterns, like *.azw3 or *.kfx but then there are books (kfx mostly) for which there are errors like those shown below:
Code:
DEBUG: 16.7 Searching for books on vol=/media/dario/Kindle/documents using template=*.kfx DEBUG: 16.7 Have possible book with path=/media/dario/Kindle/documents/Ultimo viene il corvo_B00C2H3ZO2.kfx DEBUG: 16.7 _get_metadata. path=/media/dario/Kindle/documents/Ultimo viene il corvo_B00C2H3ZO2.kfx, stream_type=kfx DEBUG: 16.7 Unable to get metadata from book. path=/media/dario/Kindle/documents/Ultimo viene il corvo_B00C2H3ZO2.kfx DEBUG: 16.7 Exception thrown was=CONT magic number is incorrect (ea 44 52 4d) DEBUG: 16.7 Have possible book with path=/media/dario/Kindle/documents/Il signore degli anelli (Vintage)_B00671AB3M.kfx DEBUG: 16.7 _get_metadata. path=/media/dario/Kindle/documents/Il signore degli anelli (Vintage)_B00671AB3M.kfx, stream_type=kfx DEBUG: 16.7 Unable to get metadata from book. path=/media/dario/Kindle/documents/Il signore degli anelli (Vintage)_B00671AB3M.kfx DEBUG: 16.7 Exception thrown was=CONT magic number is incorrect (ea 44 52 4d) Code:
DEBUG: 22.4 Have possible book with path=/media/dario/Kindle/documents/Il cuore saggio_B01KTTPZG0.kfx DEBUG: 22.4 _get_metadata. path=/media/dario/Kindle/documents/Il cuore saggio_B01KTTPZG0.kfx, stream_type=kfx DEBUG: 22.4 Unable to get metadata from book. path=/media/dario/Kindle/documents/Il cuore saggio_B01KTTPZG0.kfx DEBUG: 22.4 Exception thrown was=CONT magic number is incorrect (ea 44 52 4d) Code:
DEBUG: 29.8 Annotation for Title==Il cuore saggio (Italian Edition)
DEBUG: 29.8 Title not found in books on device
Code:
DEBUG: 16.1 Searching for books on vol=/media/dario/Kindle/documents using template=*.azw3 DEBUG: 16.1 Have possible book with path=/media/dario/Kindle/documents/Ascolta il tuo cane (Salani Saggi)_B006664BDO.azw3 DEBUG: 16.1 _get_metadata. path=/media/dario/Kindle/documents/Ascolta il tuo cane (Salani Saggi)_B006664BDO.azw3, stream_type=azw3 DEBUG: 16.1 Have possible book with path=/media/dario/Kindle/documents/Palomar (Oscar opere di Italo Calvino Vol. 12)_B00C2H3Y3Y.azw3 DEBUG: 16.1 _get_metadata. path=/media/dario/Kindle/documents/Palomar (Oscar opere di Italo Calvino Vol. 12)_B00C2H3Y3Y.azw3, stream_type=azw3 Code:
DEBUG: 29.0 _get_metadata. path=/media/dario/Kindle/documents/Palomar (Oscar opere di Italo Calvino Vol. 12)_B00C2H3Y3Y.azw3, stream_type=azw3 DEBUG: 29.1 Book on device title: Palomar (Oscar opere di Italo Calvino Vol. 12) (Italian Edition) DEBUG: 29.1 _get_metadata. path=/media/dario/Kindle/documents/Ascolta il tuo cane (Salani Saggi)_B006664BDO.azw3, stream_type=azw3 DEBUG: 29.1 Book on device title: Ascolta il tuo cane (Salani Saggi) (Italian Edition) Code:
DEBUG: 29.7 Annotation for Title==Palomar (Oscar opere di Italo Calvino Vol. 12) (Italian Edition)
DEBUG: 29.7 Found book_id=-52
Ciao, Dario |
![]() |
![]() |
![]() |
Tags |
sampleexportingapp |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 523 | 07-15-2025 06:45 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] Annotations (closed) | GRiker | Plugins | 68 | 06-17-2014 06:11 AM |
[GUI Plugin] KiNotes | -axel- | Plugins | 0 | 07-14-2013 06:39 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |