![]() |
#181 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,006
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Just a thought: I'm using just 7 basic additional plug-ins, you seem to use a lot more, can they influence each other?
|
![]() |
![]() |
![]() |
#182 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,355
Karma: 165628573
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I've seldom seen any interactions between plugins. Might be interesting if you disabled the other plugins and just tried Kobo Utilities to see what happens.
Last time I ran into an interaction between plugins was fun with. I disabled all installed plugins and then re-enabled one at a time until the issue happened. I think I sent about a megabyte of debug logs to davidfor while doing this. |
![]() |
![]() |
![]() |
#183 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,006
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Well, "user interface action" plug-ins cannot be disabled, it seems. So when the only other option is to remove them, I refrain from trying that.
|
![]() |
![]() |
![]() |
#184 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85
Karma: 8592
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
|
The error I fixed was the KeyError that DrChiper reported seeing in 2.19.1. The fix was a simple one-line change to a button in that dialog, so it shouldn't have any effect on anything else in Calibre. None of the other changes in that version touch anything else in Calibre itself, certainly not its database, so I have no idea about the library oddities that DNSB seems to be seeing.
@DrChiper, you said that the new version "prevents Calibre from starting". Are you getting any error message? The only way I could imagine that happening is if the "Kobo Utilities.json" config file in the plugins directory has become corrupted somehow. Could you maybe try removing that to see if that fixes it? And if yes, could you post it here so I can have a look at it? There seem to be a few more bugs in that annotation feature as I also got an error when trying to change the selection in the dialog. |
![]() |
![]() |
![]() |
#185 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,355
Karma: 165628573
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I tried spinning up a new VM and installing calibre 8.0.1 and KU 2.20.0 (no other plugins) No issues noted with adding and then removing an annotation and the In library column does not show the UUID or AUTHOR entries after removing an annotation. A small library of 40 books was used.
|
![]() |
![]() |
![]() |
#186 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,355
Karma: 165628573
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Checked and vacuumed the KoboReader.sqlite database and restarted the Kobo (used SQLite Expert Personal for the cleanup). Used calibre to check and vacuum it's databases. Reconnected my Kobo and the UUID/AUTHOR have disappeared from the In Library column.
|
![]() |
![]() |
![]() |
#187 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85
Karma: 8592
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
|
Thanks for the investigation, DNSB. It looks like the "remove annotations" dialog got broken by the migration from Qt5 to Qt6, since Qt6 removed a deprecated API that that dialog used. My fix was the first step in making it work again but it's not complete. I'll take a look at that, although since that switch happened a while ago and no-one has reported an issue before I wonder how many people actually use that feature.
I still can't see how that change could have broken anything else though, so I would need more information from @DrChiper about what he's seeing. |
![]() |
![]() |
![]() |
#188 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85
Karma: 8592
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
|
Quote:
I actually just tried double-clicking that column for a book and got this exception: Code:
calibre, version 8.0.1 ERROR: Error: Error communicating with device stat: path should be string, bytes, os.PathLike or integer, not BufferedReader Traceback (most recent call last): File "calibre/gui2/device.py", line 111, in run File "calibre/gui2/device.py", line 713, in _view_book File "calibre/devices/kobo/driver.py", line 762, in get_file File "shutil.py", line 235, in copyfile File "shutil.py", line 212, in _samefile File "genericpath.py", line 100, in samefile TypeError: stat: path should be string, bytes, os.PathLike or integer, not BufferedReader |
|
![]() |
![]() |
![]() |
#189 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,355
Karma: 165628573
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Edit: I've attached an image of my "normal" view. When I double clicked on the column, it opened the book in calibre's ebook viewer. Last edited by DNSB; 03-22-2025 at 08:21 PM. Reason: added image of "normal" In library view and double click on column |
|
![]() |
![]() |
![]() |
#190 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,310
Karma: 7957679
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
When running in debug mode calibre puts how the book on the device was matched to a book in the library. UUID is the most precise. If there is no UUID match IIRC calibre tries various forms of title and author matching. The matching algorithms are in gui2.device.py.
Last edited by chaley; 03-22-2025 at 08:38 PM. Reason: Typo |
![]() |
![]() |
![]() |
#191 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85
Karma: 8592
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
|
I assume that the information in the "In Library" column tells you how Calibre matched the books on the device with the books in the library, which is probably different between the initial copy and subsequent connections. I think I've only ever seen UUID there, at least if the book is already on the device. As far as I understand it the plugin isn't involved in this at all, so any weirdness that you're seeing should be due to Calibre itself. Odd that double-clicking on it works for you though while I'm getting an exception.
Edit: Of course @chaley posts the explanation just a minute before me ![]() Last edited by Majutsushi; 03-22-2025 at 08:38 PM. |
![]() |
![]() |
![]() |
#192 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,355
Karma: 165628573
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
![]() ![]() |
|
![]() |
![]() |
![]() |
#193 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85
Karma: 8592
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
|
I think I fully fixed the "Remove Annotations" feature now. I'm still not sure how the issues could have caused any corruption, so it would be great if @DrChiper could give this a try to see if you're still having problems.
|
![]() |
![]() |
![]() |
#194 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,006
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
I installed the plugin manually, and tested it. No GUI problems anymore, and I could select all 5 radio-buttons for the given selection options.
![]() One remark though: when the last annotation file is removed of a sub-folder, that sub-folder still remains and hence, could be removed as well. The same applies when all sub-folders are removed within the main folder ANNOTATIONS, that latter folder could be removed also (as is done when selecting the "All" option) Great work ![]() |
![]() |
![]() |
![]() |
#195 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,006
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
The simple answer is: nobody as it was broken for a long time. I remember mentioning this to DavidFor some years ago that I noticed that the Kobo sw did not cleaned the annotations after removing the books. He mentioned that "when he had time, perhaps something could be done about it", which sadly never materialized. Until now.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Kobo Utilities | davidfor | Plugins | 3216 | 02-08-2025 04:23 AM |
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 03:15 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |
Kobo Utilities Plugin Question | nikev | Kobo Reader | 10 | 09-25-2018 11:55 PM |