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 03-17-2012, 01: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
Old 03-17-2012, 01:31 PM   #2
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: 26,312
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The list command is generating too much output for the windows console to handle. Redirect it to a file.
kovidgoyal 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
Adding books RiotGrrl Library Management 4 05-01-2011 06:22 AM
Adding Books cityzen Library Management 3 04-15-2011 01:51 AM
Adding PDF books Sweetpea Calibre 15 09-21-2010 01:03 PM
Help with adding books please stustaff Calibre 12 10-27-2009 03:30 PM
Error adding books Gfinch Calibre 2 08-03-2008 09:36 PM


All times are GMT -4. The time now is 09:25 PM.


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