![]() |
#1 |
Junior Member
![]() 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: Code:
title_ subtitle.[author].[publisher, pubdate].isbn.(tags).pdf 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_h61wSb_rm_worker/0.opf 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. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Works fine for me on gentoo, albeit not using the ebuilds.
Code:
ebook-meta /home/kovid/pdf/Extract_ANAT_Annual\ Report_2008.pdf --to-opf /t/t.opf Title : Extract ANAT Annual Report 2008 Author(s) : Unknown Book Producer : Adobe InDesign CS3 (5.0.4) OPF created in /t/t.opf |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jul 2010
Device: none
|
The problem is the PyQt4 UUID conflict you reported here:
http://bugs.gentoo.org/show_bug.cgi?id=317557 My system is x86 and I couldn't get any combination of util-linux and PyQt4 to work. As your example on the bug report shows, it works if the UUID is loaded before PyQt4. Importing the UUID in calibre's __init__ seems to solve the issue. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,156
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oh yeah, forgot about that, have util-linux masked on all my machines.
|
![]() |
![]() |
![]() |
Tags |
ebook-meta, opf, segfault, segmentation fault |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't change metadata with ebook-meta | mumdigau | Calibre | 14 | 08-05-2010 08:58 PM |
new to calibre,help on .OPF conversion to Iphone ebook | DefJedi | Calibre | 0 | 07-30-2010 11:34 PM |
set meta data with ebook-meta and ebook-convert | krischik | Calibre | 6 | 01-19-2010 11:40 AM |
ebook-convert segfaults converting PDF files | bloovis | Calibre | 4 | 09-30-2009 08:38 PM |
Unable to create MAN page for opf-meta | AprilHare | Calibre | 5 | 11-28-2008 04:05 AM |