Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 01-18-2025, 10:50 PM   #3166
Majutsushi
Connoisseur
Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.
 
Posts: 54
Karma: 6306
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
Thanks for the encouragement and additional info!

If it's actually possible to create a new thread in a way that still supports updating existing installations then that may indeed be the best option. The current thread is already very long anyway. I'll look into that next week.
Majutsushi is offline  
Old 01-18-2025, 10:52 PM   #3167
Majutsushi
Connoisseur
Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.
 
Posts: 54
Karma: 6306
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
Quote:
Originally Posted by ownedbycats View Post
There is one outstanding bug that might be worth fixing:

https://www.mobileread.com/forums/sh...83#post4251283
I've created an issue for that and will try to have a look into it soon. Ideally some people could verify that the current build works fine, then I can create a new thread with a known working version that hopefully includes a fix for this.
Majutsushi is offline  
Advert
Old 01-18-2025, 10:56 PM   #3168
Majutsushi
Connoisseur
Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.
 
Posts: 54
Karma: 6306
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
Quote:
Originally Posted by JSWolf View Post
Can we please get rid of the dialog that pops up when we have no reading information to be updated from the Kobo? Thanks.
I just had a quick look at the code and the decision for whether to show a dialog or just a notification is dependent on whether you have enabled the "Prompt to store any changes" option. Disabling that should get rid of the dialog. If people think that it should always just be a notification then that would be an easy change.
Majutsushi is offline  
Old 01-19-2025, 04:53 AM   #3169
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 78,355
Karma: 142887248
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Majutsushi View Post
I just had a quick look at the code and the decision for whether to show a dialog or just a notification is dependent on whether you have enabled the "Prompt to store any changes" option. Disabling that should get rid of the dialog. If people think that it should always just be a notification then that would be an easy change.
Prompt to store any changes, not prompt not to store any changes. I just don't want any sort of notification. No notification means there's nothing to update. The dialog to show there's something to update is enough.
JSWolf is offline  
Old 01-19-2025, 11:05 AM   #3170
Lys
Groupie
Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.
 
Posts: 156
Karma: 722116
Join Date: Dec 2022
Location: Not in an English speaking country
Device: (Too many) Kobo(s)
Hi! I tried to install your version, but I got an error when storing Reading Positions:

Quote:
calibre, version 7.22.0
ERROR: Unhandled exception: <b>ValueError</b>:too many values to unpack (expected 4)
I'm running calibre 7.22 (not the latest version, but I can update, if you think that may the reason of the error).


PS: And thank you for your effort! KoboUtilities is one of the things I love the most about Kobo-Calibre integration


Edited to add: I'm using a Kobo Libra Colour, running the latest firmware 4.41.23145

Last edited by Lys; 01-19-2025 at 11:38 AM.
Lys is offline  
Advert
Old 01-19-2025, 04:46 PM   #3171
Majutsushi
Connoisseur
Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.
 
Posts: 54
Karma: 6306
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
Quote:
Originally Posted by Lys View Post
Hi! I tried to install your version, but I got an error when storing Reading Positions:



I'm running calibre 7.22 (not the latest version, but I can update, if you think that may the reason of the error).


PS: And thank you for your effort! KoboUtilities is one of the things I love the most about Kobo-Calibre integration


Edited to add: I'm using a Kobo Libra Colour, running the latest firmware 4.41.23145
Thanks for giving it a try! Your version should definitely work, so that's clearly a bug.

Unfortunately there is some context missing that makes it difficult to track down the bug. Could you please follow these steps:
  • Start Calibre
  • Right-click the preferences icon and select the option "Restart in debug mode"
  • After the restart you should see a dialog box telling you where the debug log file is kept. Calibre should automatically open the file after quitting again, but just in case it would be good to make a note of the location.
  • Reproduce the bug
  • Quit Calibre so that the log file gets opened
  • Paste the log file somewhere (it will probably be too long to paste it into a post here)
Thanks!
Majutsushi is offline  
Old 01-19-2025, 05:42 PM   #3172
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,274
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I install the plugin on 7.24.100 (preview). Got the same error.

Code:
calibre, version 7.24.100
ERROR: Unhandled exception: <b>ValueError</b>:too many values to unpack (expected 4)

calibre 7.24.100  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.5
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: ...
Traceback (most recent call last):
  File "calibre\gui2\__init__.py", line 810, in dispatch
  File "calibre_plugins.koboutilities.action", line 2911, in _store_completed
  File "calibre_plugins.koboutilities.dialogs", line 3752, in __init__
  File "calibre_plugins.koboutilities.dialogs", line 3797, in initialize_controls
  File "calibre_plugins.koboutilities.dialogs", line 3880, in __init__
ValueError: too many values to unpack (expected 4)
Click image for larger version

Name:	2025-01-19 18_44_41-Customize Kobo Utilities.png
Views:	40
Size:	30.6 KB
ID:	213175
Attached Files
File Type: zip debug.zip (131.3 KB, 57 views)

Last edited by ownedbycats; 01-19-2025 at 05:45 PM.
ownedbycats is offline  
Old 01-19-2025, 08:13 PM   #3173
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 78,355
Karma: 142887248
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@Majutsushi when you are fixing the reported bug, can you also remove the dialog that tells me I have no books with new readings positions? Thanks.
JSWolf is offline  
Old 01-19-2025, 10:21 PM   #3174
Majutsushi
Connoisseur
Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.Majutsushi got an A in P-Chem.
 
Posts: 54
Karma: 6306
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
Thanks for the reports. Here is a new version with the following changes:
  • Fixed the exception reported above. I missed a few calls in the reading position dialog since I haven't used it myself, and the way the dialog code works the call sites didn't show up for me in a search for callers of the function I changed for the additional columns.
  • Fixed the issue that @ownedbycats reported, where unchecking a book in the reading position dialog didn't work.
  • There is now no dialog popup if there are no reading position changes, even if you have enabled the "Prompt for changes" option.
I hope this takes care of the important issues that are relevant for a new release.
Attached Files
File Type: zip KoboUtilities-unknown.zip (324.5 KB, 39 views)
Majutsushi is offline  
Old 01-20-2025, 05:45 AM   #3175
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,274
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Yes, now imports as expected. The other issues are fixed too.
ownedbycats is offline  
Old 01-20-2025, 12:11 PM   #3176
Lys
Groupie
Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.
 
Posts: 156
Karma: 722116
Join Date: Dec 2022
Location: Not in an English speaking country
Device: (Too many) Kobo(s)
I installed the new version and it worked like a charm

I have a question though: if I haven't missed something in the configuration, the new columns with the reading time and the estimated time are updated for the books whose reading positions get updated.
Is there a way or would it be possible to store those data also for the other books on the device?
Lys is offline  
Old 01-20-2025, 12:25 PM   #3177
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,274
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Did you try restore reading bookmark? I havent enabled the feature myself.
ownedbycats is offline  
Old 01-20-2025, 12:32 PM   #3178
jwilker
Zealot
jwilker once ate a cherry pie in a record 7 seconds.jwilker once ate a cherry pie in a record 7 seconds.jwilker once ate a cherry pie in a record 7 seconds.jwilker once ate a cherry pie in a record 7 seconds.jwilker once ate a cherry pie in a record 7 seconds.jwilker once ate a cherry pie in a record 7 seconds.jwilker once ate a cherry pie in a record 7 seconds.jwilker once ate a cherry pie in a record 7 seconds.jwilker once ate a cherry pie in a record 7 seconds.jwilker once ate a cherry pie in a record 7 seconds.jwilker once ate a cherry pie in a record 7 seconds.
 
Posts: 102
Karma: 1940
Join Date: Apr 2009
Location: Denver, CO
Device: Libra H2O
Quote:
Originally Posted by JSWolf View Post
Prompt to store any changes, not prompt not to store any changes. I just don't want any sort of notification. No notification means there's nothing to update. The dialog to show there's something to update is enough.
While I don't see it often, yeah I def want to get prompted to save new positions, but wouldn't mind if when there weren't any it just notified me and didn't halt the app with a dialogue.

Edit: And I see you addressed it. Good work!

Last edited by jwilker; 01-20-2025 at 12:34 PM. Reason: should've waited until I read to the bottom.
jwilker is offline  
Old 01-20-2025, 12:58 PM   #3179
Lys
Groupie
Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.
 
Posts: 156
Karma: 722116
Join Date: Dec 2022
Location: Not in an English speaking country
Device: (Too many) Kobo(s)
Quote:
Originally Posted by ownedbycats View Post
Did you try restore reading bookmark? I havent enabled the feature myself.
Yep, I tried, but no data was retrieved from my Kobo.
I also changed the last reading time stored on Calibre to run the store of the data for books whose data on Calibre is earlier than the one on the device, and the data got updated correctly for the "old" columns, while reading time column remained empty
Lys is offline  
Old 01-20-2025, 03:21 PM   #3180
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 78,355
Karma: 142887248
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Lys View Post
I installed the new version and it worked like a charm

I have a question though: if I haven't missed something in the configuration, the new columns with the reading time and the estimated time are updated for the books whose reading positions get updated.
Is there a way or would it be possible to store those data also for the other books on the device?
What you can do is filter by reading and go in and read at least one page of every book. Then you'll get their reading positions added to your library. You do not need the reading positions of books you've not yet read.
JSWolf is offline  
Closed Thread

Tags
calibre, kobo, kobo utilities, kobo-utilities, plugins

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Manga plugin mastertea Plugins 6 01-06-2022 02:43 AM
[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
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 09:36 AM.


MobileRead.com is a privately owned, operated and funded community.