Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-19-2010, 04:40 PM   #1
gurmuq
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:
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
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
Old 07-19-2010, 04:45 PM   #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: 26,122
Karma: 5101571
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
You likely have a problem with your python install. Try re-emerging python.
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Old 08-14-2010, 09:09 PM   #3
gurmuq
Junior Member
gurmuq began at the beginning.
 
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.
gurmuq is offline   Reply With Quote
Old 08-14-2010, 09:36 PM   #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: 26,122
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oh yeah, forgot about that, have util-linux masked on all my machines.
kovidgoyal is offline   Reply With Quote
Reply

Tags
ebook-meta, opf, segfault, segmentation fault

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 03:37 PM.


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