|
|
#1 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2010
Device: none
|
Add Books Issues
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
|
|
|
|
|
|
#2 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,519
Karma: 2944574
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.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
Enthusiast
|
|
|
|
#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. |
|
|
|
|
|
#4 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,519
Karma: 2944574
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.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |