View Single Post
Old 03-17-2012, 12:23 PM   #1
Benji99
Member
Benji99 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: May 2008
Device: None
Need help with adding books via calibredb

Hi guys, I'm pretty much stuck on something I'm trying to do.
I'm trying to add a bunch of pdf files to calibre via calibredb and then, add the metadata. All this via powershell

Each folder has 20-30 pdfs to add.
A rough explanation of what I'm doing.
1.) Look at directory, add the first file to calibre
2.) using the list function, return the calibreid
3.) add metadata for such metadata
4.) add file 2 to calibre, increment the calibreid by 1 (querying everytime was giving me inconsistent problems, figured I was querying too much, so decided to use list function only on the first book.
5.) add metadata
...
...
...

My script works out pretty well, except it gets hung up on a few directories, and I figure out why. Basically, after the first file (which never seems to be added to calibre as I don't see it anywhere), and then run the list command, I get an error msg. I've tried the same commands in cmdline and get same error.

Here's what happens:
Code:
C:\temp\Journals\Vol. 11, No. 3 (Oct., 1955)>calibredb add -d --with-library \\WHS\Library\Magazines 2382913.pdf
IneptPDF: Calibre configuration directory = C:\Users\Benji\AppData\Roaming\calibre
IneptPDF: Keyfile calibre-adeptkey.der found in config folder.
Ready to start decrypting.
IneptPDF: Encryption successfully removed.
Backing up metadata
Notifying calibre of the change

C:\temp\Journals\Vol. 11, No. 3 (Oct., 1955)>calibredb list --with-library \\WHS\Library\Magazines
id   title                                            authors

Python function terminated unexpectedly
  [Errno 12] Not enough space (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  File "site-packages\calibre\library\cli.py", line 1206, in main
  File "site-packages\calibre\library\cli.py", line 197, in command_list
IOError: [Errno 12] Not enough space
I can run another directory perfectly fine.
Also the file itself seems fine, I'm able to open it, check the contents, etc...

Any idea why it's failing?
Any help greatly appreciated!
Benji99 is offline   Reply With Quote