View Single Post
Old 07-19-2010, 04:40 PM   #1
Junior Member
gurmuq began at the beginning.
Posts: 2
Karma: 10
Join Date: Jul 2010
Device: none
ebook-meta --to-opf segfaults

ebook-meta <pdf> seems to work fine and the metadata is parsed correctly from the filename.
If I use the --to-opf option, the metadata is printed but the program segfaults.

If I add new ebooks, following error message appears:
title_ subtitle.[author].[publisher, pubdate].isbn.(tags).pdf
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/", line 176, in add
    mi = MetaInformation(OPF(opf))
  File "/usr/lib/calibre/calibre/ebooks/metadata/", line 474, in __init__
    raise ValueError('Empty file: '+getattr(stream, 'name', 'stream'))
ValueError: Empty file: /tmp/calibre_0.7.9_h61wSb_rm_worker/0.opf
The book gets added but all the metadata is empty and the title contains the filename without extension.
This is reproducible with any regex or filename (tested only with pdfs).

Tested with calibre 0.7.8 and 0.7.9 by bumping the gentoo ebuild.
gurmuq is offline   Reply With Quote