View Single Post
Old 05-11-2023, 11:05 AM   #2626
isarl
Addict
isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.
 
Posts: 295
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
Quote:
Originally Posted by decoherent View Post
Hi, I'm having some trouble getting the ToC updated on my Kobo Libra H2O. The plugin worked great to add the series metadata, so thanks for that Something about the ToC update process makes everything fall over, though. When the plugin finishes scanning through the books on my reader, it (correctly) notes that all of them need ToC updates. However, after running a few, I'll get the following error thrown:

Code:
calibre, version 6.17.0
ERROR: Unhandled exception: <b>TypeError</b>:tuple indices must be integers or slices, not str

calibre 6.17  embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Kobo Utilities (2, 16, 6)
Traceback (most recent call last):
  File "calibre_plugins.koboutilities.action", line 5390, in update_book_toc_on_device
  File "calibre_plugins.koboutilities.action", line 5818, in update_device_toc_for_books
  File "calibre_plugins.koboutilities.action", line 5833, in update_device_toc_for_book
  File "calibre_plugins.koboutilities.action", line 5864, in getDatabaseChapterId
TypeError: tuple indices must be integers or slices, not str
After this, I have to close calibre and disconnect/reconnect my reader before it'll do anything useful again (it just promptly throws the error otherwise). I've tried using a smaller subset of books, maybe 10 to 50, but sometimes it'll, sometimes it'll crash.

I have no idea what this means, is there a suggested fix?
I encountered problems recently while updating TOCs, but not this specific problem. In my case the issue was that the plugin seemed to be using disk space and I was running out of it when trying to process my entire library at once. I switched to processing a few books at a time (even 1 book at a time, for the largest books) and it ran without issues. Dunno if this will help you, but I hope so. Good luck!
isarl is offline