View Single Post
Old 09-17-2023, 01:58 PM   #1
hillcountryfare
Member
hillcountryfare began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jul 2023
Device: KPW, Fire Tablet 8
tpz file errors importing at command line but works in the GUI

When I try to import this tpz file from the command line using calibredb, I get an error:
Code:
C:\dropbox\books>"C:\dropbox\for home\Calibre Portable\Calibre\calibredb" add --with-library "c:\dropbox\for home\Calibre Portable\Scratch Library" "C:\dropbox\books\Library\Sometimes I Act Crazy.tpz" -I source:901
Traceback (most recent call last):
  File "calibre\customize\ui.py", line 469, in get_file_type_metadata
  File "calibre\customize\builtins.py", line 393, in get_metadata
  File "calibre\ebooks\metadata\topaz.py", line 376, in get_metadata
  File "calibre\ebooks\metadata\topaz.py", line 112, in __init__
ValueError: 'C:\dropbox\books\Library\Sometimes I Act Crazy.tpz': Invalid Topaz format - no metadata record
The following books were not added as they already exist in the database (see --duplicates option or --automerge option):
  Sometimes I Act Crazy
    C:\dropbox\books\Library\Sometimes I Act Crazy.tpz
Note, this book did not exist in the database.

When I add through the GUI, it imports fine as an htmlz file. debug log from the GUI and the tpz file attached.
Attached Files
File Type: zip tpz.zip (6.30 MB, 98 views)
hillcountryfare is offline   Reply With Quote