View Single Post
Old 12-26-2014, 05:01 PM   #13
rracoon01
Connoisseur
rracoon01 began at the beginning.
 
rracoon01's Avatar
 
Posts: 88
Karma: 10
Join Date: Nov 2013
Device: android tablets
Python runtime error in calibredb catalog batch log

I have a batch job to make a couple of catalogs of my Calibre db with just one click. I have been having trouble getting the job to exclude one tag in the output. The command line references a preset which I use to get only the sections that I want output to the catalog. Would not use the preset at all if sections were one of the command line options but I can’t find any docs to that effect. While debugging this, I encountered a runtime error that I had not noticed when I originally wrote the batch program last winter; appears to be relatively new. Can you help me figure out what to do to figure out what this error is from the excerpt of batch log below. I cannot find the directory noted in the error message. Note also that I moved the exclusion filters for the tags from the preset and into the batch file in an effort to decipher my original problem and the verbosity of the output from the command line in the batch log file shrunk dramatically but the results were the same. It used to list which books were excluded by which tag and the error message was issued during that list as well as at the end. When I put the tag exclusions back in the preset to give you more information, the verbosity did not come back. Note that the error message occurs in both of the catalog creations in this batch log, but that the first command successfully excludes all of the tags correctly, while the second one continues to include one book that does have all of the tags that should have been excluded in the command line.

Excerpt from the batch log:

C:\Users\rracoon\Documents\EPUB Stuff>rem create the catalogs

C:\Users\rracoon\Documents\EPUB Stuff>calibredb catalog "C:\Users\rracoon\Documents\Calibre Library\Allen Williams\Allen's eBook Shelf (365)\Allen's eBook Shelf - Allen Williams.EPUB" --preset="Allen's Catalogs" --search=format:true and not tags:Catalog and not tagsrivate and not tags:news
Sections: Authors, Titles, Genres, Recently Added, Descriptions
existing thumb cache at C:\Users\rracoon\AppData\Local\calibre-cache\catalog\thumbs.zip, cached_thumb_width: 1.00"
1% Sorting titles
7% Sorting database
13% Thumbnails
unhandled exception in catalog generator
Python function terminated unexpectedly
File name in directory "97b09aed-cdd4-4d8b17734c-6356-47be-ae2c-209a7d" and header "97b09aed-cdd4-4d8b-9bf9-8efd55fc7c6b0x65cd7d2d" differ. (Error Code: 1)

C:\Users\rracoon\Documents\EPUB Stuff>if 0 == 1 pause

C:\Users\rracoon\Documents\EPUB Stuff>calibredb catalog "C:\Users\rracoon\Documents\Calibre Library\Allen Williams\Allen's Unread eBooks (367)\Allen's Unread eBooks - Allen Williams.EPUB" --preset="Allen's Catalogs" --search="#dateread:false and format:true" and not tags:Catalog and not tags:news
Sections: Authors, Titles, Genres, Recently Added, Descriptions
existing thumb cache at C:\Users\rracoon\AppData\Local\calibre-cache\catalog\thumbs.zip, cached_thumb_width: 1.00"
1% Sorting titles
7% Sorting database
13% Thumbnails
unhandled exception in catalog generator
Python function terminated unexpectedly
File name in directory "97b09aed-cdd4-4d8b17734c-6356-47be-ae2c-209a7d" and header "97b09aed-cdd4-4d8b-9bf9-8efd55fc7c6b0x65cd7d2d" differ. (Error Code: 1)
rracoon01 is offline   Reply With Quote