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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-17-2023, 12:58 PM   #1
hillcountryfare
Member
hillcountryfare began at the beginning.
 
Posts: 10
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, 8 views)
hillcountryfare is offline   Reply With Quote
Old 09-17-2023, 04:54 PM   #2
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 19,750
Karma: 25084908
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Please read this ==>> I am getting errors with my calibre library on a networked drive/NAS?

BR
BetterRed is offline   Reply With Quote
Advert
Old 09-17-2023, 09:51 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 42,994
Karma: 20900374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Whatever install you are running calibredb from doesnt have the dedrm plugin installed. And use --duplicates if you want to add it anyway despite there already being a book with the same title in your library.
kovidgoyal is offline   Reply With Quote
Old 09-18-2023, 08:18 PM   #4
hillcountryfare
Member
hillcountryfare began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2023
Device: KPW, Fire Tablet 8
Can you offer some suggestions on troubleshooting or next steps? The calibredb page doesn't have any information on plugins.

The calibredb.exe file is in the same folder as the calibre-portable.exe that I launch and the import is successful with. I am also able to import a DRM'd azw3 file using the exact command except for changing the file name.
hillcountryfare is offline   Reply With Quote
Old 09-18-2023, 10:59 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 42,994
Karma: 20900374
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
PLugins are loaded from the config directory. calibre-portable.exe works by setting an env var to point to the portable directory. If you are trying to use command line tools from a portable installation you need to set the env var yourself so that they use the correct config directory. https://manual.calibre-ebook.com/cus...ment-variables
kovidgoyal is offline   Reply With Quote
Advert
Old 09-22-2023, 11:04 AM   #6
hillcountryfare
Member
hillcountryfare began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2023
Device: KPW, Fire Tablet 8
thank you. setting CALIBRE_CONFIG_DIRECTORY solved the issue!
hillcountryfare is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GUI works, command line fails endo32 Conversion 1 06-17-2017 10:05 PM
Importing books via command line *in the background*? mrowz Calibre 12 05-26-2017 11:30 AM
Command Line conversion errors cptgunther Conversion 1 05-13-2016 11:21 AM
Checking and Importing from the Command Line markbond1007 Calibre 3 08-06-2009 12:46 PM
Errors on Command Line drnkusv Calibre 11 11-07-2008 02:59 PM


All times are GMT -4. The time now is 12:03 PM.


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