Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-22-2010, 09:00 PM   #1
martindiv
Junior Member
martindiv began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2010
Device: none
Add Books Issues

I am trying to add over 900 books to Calibre and I am having some serious issues. I am using Calibre 0.7.9 on Gentoo Linux.

In preferences, Add/Save, Adding Books: I have "Read metadata only from filename" checked. I also have the following regular expression:

Code:
(?P<author>.+?) - ((?P<series>.+?) - (?P<series_index>[0-9]+)-|)(?P<title>.+)
I have tested this expression against nearly 50 different titles I am trying to add and it works every time. When I try to add books either from "Add books from a single Directory" or "Add books from directories, including sub directories (Multiple books per directory, assume every book file is a different book)" the regular expression is ignored and the title gets added with the entire filename in the title column and the author set as Unknown.

I also get the following error when I try to add a book:
Code:
WARNING: Failed to read metadata: Failed to read metadata from the following:

Anthony,Piers_-_Adept_-_01-Split_Infinity.doc
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/add.py", line 176, in add
    mi = MetaInformation(OPF(opf))
  File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 474, in __init__
    raise ValueError('Empty file: '+getattr(stream, 'name', 'stream'))
ValueError: Empty file: /tmp/calibre_0.7.9_3i1lgI_rm_worker/0.opf
So, it obvious that calibre is completely ignoring the preferences I have set up. Is there some trick I need to use in order to get this to work?
martindiv is offline   Reply With Quote
Old 07-23-2010, 12:18 AM   #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: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
this is a problem with your install. Basically the worker process used to add the books is crashing. I would suggest uninstalling and using the binary from the calibre site. Gentoo does funny things to its python interpreter.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-23-2010, 09:21 AM   #3
martindiv
Junior Member
martindiv began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2010
Device: none
Ok. Installing the binary version worked.

Out of curiosity, can you be a little more specific about what Gentoo does to python in order to cause this problem?

Thanks.
martindiv is offline   Reply With Quote
Old 07-23-2010, 10:42 AM   #4
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: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
They use a binary wrapper that is responsible for launching the actual python interpreter. And that wrapper does something funky when launching the interpreter, either it doesn't pass in the environment variables or something else, I haven't bothered looking at the code to figure out exactly what.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
0.7.9 Won't Add Books steveboyett Calibre 19 07-22-2010 08:31 AM
Can't add books rock Calibre 2 04-21-2010 01:49 AM
Add Empty Books? Sydney's Mom Calibre 4 03-14-2010 08:26 PM
[Enhancement suggestion] Folders when save books in "Add Books" function simonbcn Calibre 1 08-30-2009 12:59 PM
I was told ya can use itunes to get audio books, so how do ya add the books to the K? Dragoro Amazon Kindle 27 04-16-2009 12:17 AM


All times are GMT -4. The time now is 07:51 PM.


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