View Single Post
Old 02-26-2025, 01:28 AM   #92
Majutsushi
Zealot
Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'Majutsushi knows the difference between 'who' and 'whom'
 
Posts: 111
Karma: 10128
Join Date: Aug 2023
Location: New Zealand
Device: Kobo Clara HD, Kobo Libra Colour
Quote:
Originally Posted by DNSB View Post
Getting an error with some books when I attempt to use the Kobo Utilities Update Metadata in Device Library.

Code:
calibre, version 7.26.100
ERROR: Unhandled exception: <b>TypeError</b>:strptime() argument 1 must be str, not None

calibre 7.26.100*  embedded-python: True
Windows-10-10.0.26100-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.26100')
Python 3.11.5
Windows: ('10', '10.0.26100', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre-debug.exe
Successfully initialized third party plugins: LCPL Input (0, 0, 5) && Gather KFX-ZIP (from KFX Input) (2, 20, 0) && DeDRM (10, 0, 9) && AZW6 Image Merge (1, 1, 1) && Package KFX (from KFX Input) (2, 20, 0) && DeACSM (0, 0, 20) && Apple Books covers (0, 2, 0) && Backup Configuration Folder (1, 1, 2) && Barnes & Noble (1, 5, 6) && Count Pages (1, 13, 6) && DeACSM (0, 0, 20) && Diaps Editing Toolbag (0, 5, 0) && EpubCheck (0, 2, 5) && EpubMerge (3, 2, 0) && EpubSplit (3, 10, 0) && FanFicFare (4, 42, 0) && Find Duplicates (1, 10, 9) && Generate Cover (2, 3, 5) && Goodreads (1, 8, 2) && Job Spy (1, 0, 239) && KFX metadata reader (from KFX Input) (2, 20, 0) && From KFX (2, 20, 0) && KFX Input (2, 20, 0) && Set KFX metadata (from KFX Output) (2, 14, 0) && KFX Output (2, 14, 0) && KePub Metadata Reader (3, 4, 3) && KePub Output (3, 7, 3) && Kindle hi-res covers (0, 5, 1) && KindleUnpack - The Plugin (0, 83, 7) && Kobo Metadata (1, 10, 0) && Kobo Utilities (2, 18, 2) && KoboTouchExtended (3, 7, 3) && Modify ePub (1, 8, 5) && Obok DeDRM (10, 0, 9) && Open With (1, 8, 4) && OverDrive Libby (0, 2, 3) && Quality Check (1, 13, 16) && Resize Cover (1, 2, 1) && ScrambleEbook (0, 6, 0) && SmartEject (2, 6, 0) && Smashwords Metadata (1, 0, 2)
Traceback (most recent call last):
  File "calibre_plugins.koboutilities.action", line 1173, in update_metadata
  File "calibre_plugins.koboutilities.action", line 4899, in _update_metadata
  File "calibre_plugins.koboutilities.common_utils", line 321, in convert_kobo_date
TypeError: strptime() argument 1 must be str, not None
2 books in my Intake library which do not have a Published date (field is blank) trigger this error repeatably.

If I open the Metatdata Editor, the pub date shows as Jan. 2000 but editing it does not seem to make any difference.
The code tried to log the published date from the device database, but since that's empty it failed to convert it to a readable string. Does the attached version work for you?
Attached Files
File Type: zip KoboUtilities-v2.18.2-1-g514f1d0.zip (312.9 KB, 68 views)
Majutsushi is offline   Reply With Quote