![]() |
#1 |
Member
![]() 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 When I add through the GUI, it imports fine as an htmlz file. debug log from the GUI and the tpz file attached. |
![]() |
![]() |
![]() |
#2 |
null operator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,750
Karma: 25084908
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#4 |
Member
![]() 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. |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 10
Karma: 10
Join Date: Jul 2023
Device: KPW, Fire Tablet 8
|
thank you. setting CALIBRE_CONFIG_DIRECTORY solved the issue!
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |