07-22-2010, 09:00 PM | #1 |
Junior Member
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 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 |
07-23-2010, 12:18 AM | #2 |
creator of calibre
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.
|
Advert | |
|
07-23-2010, 09:21 AM | #3 |
Junior Member
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. |
07-23-2010, 10:42 AM | #4 |
creator of calibre
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.
|
|
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 |