Public bug reported:

I have one book in my library that Calibre consistently fails to
convert. It's in the Sony e-book format and I want to convert it so that
I can store it on a Kindle.

The full error log is:

Convert book 1 of 1 (A Woman of Thirty)
Resolved conversion options
calibre version: 0.9.18
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': u'original',
 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 
'\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 
'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'/tmp/calibre_0.9.18_tmp_mLHEMT/j0Rbny.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_compress': False,
 'duplicate_links_in_toc': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'extra_css': None,
 'extract_to': None,
 'filter_css': u'',
 'fix_indents': True,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x2287150>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': False,
 'language': None,
 'level1_toc': None,
 'level2_toc': None,
 'level3_toc': None,
 'line_height': 0.0,
 'linearize_tables': False,
 'margin_bottom': 5.0,
 'margin_left': 5.0,
 'margin_right': 5.0,
 'margin_top': 5.0,
 'markup_chapter_headings': True,
 'max_toc_links': 50,
 'minimum_line_height': 120.0,
 'mobi_toc_at_start': False,
 'no_chapters_in_toc': False,
 'no_inline_navbars': False,
 'no_inline_toc': False,
 'output_profile': <calibre.customize.profiles.KindlePaperWhiteOutput object at 
0x2287890>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'prefer_author_sort': False,
 'prefer_metadata_cover': False,
 'pretty_print': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'/tmp/calibre_0.9.18_tmp_mLHEMT/rKdigp.opf',
 'remove_fake_margins': True,
 'remove_first_image': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'renumber_headings': True,
 'replace_scene_breaks': u'',
 'search_replace': '[]',
 'series': None,
 'series_index': None,
 'share_not_sync': False,
 'smarten_punctuation': False,
 'sr1_replace': None,
 'sr1_search': None,
 'sr2_replace': None,
 'sr2_search': None,
 'sr3_replace': None,
 'sr3_search': None,
 'start_reading_at': None,
 'subset_embedded_fonts': False,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'toc_title': None,
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: LRF Input running
on /tmp/calibre_0.9.18_tmp_mLHEMT/28kmPJ.lrf
Generating XML
Traceback (most recent call last):
  File "/usr/bin/calibre-parallel", line 20, in <module>
    sys.exit(main())
  File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 189, in main
    result = func(*args, **kwargs)
  File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 31, in 
gui_convert_override
    override_input_metadata=True)
  File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 25, in 
gui_convert
    plumber.run()
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 1009, in 
run
    accelerators, tdir)
  File "/usr/lib/calibre/calibre/customize/conversion.py", line 239, in __call__
    log, accelerators)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/lrf_input.py", line 
28, in convert
    d.parse()
  File "/usr/lib/calibre/calibre/ebooks/lrf/lrfparser.py", line 29, in parse
    self._parse_objects()
  File "/usr/lib/calibre/calibre/ebooks/lrf/lrfparser.py", line 52, in 
_parse_objects
    self._parse_object(objid, objoff, objsize)
  File "/usr/lib/calibre/calibre/ebooks/lrf/lrfparser.py", line 60, in 
_parse_object
    obj = get_object(self, self._file, objid, objoff, objsize, 
self.scramble_key)
  File "/usr/lib/calibre/calibre/ebooks/lrf/objects.py", line 1267, in 
get_object
    return object_map[obj_type](document, stream, obj_id, scramble_key, 
offset+size-Tag.tags[0][0])
  File "/usr/lib/calibre/calibre/ebooks/lrf/objects.py", line 150, in __init__
    LRFObject.__init__(self, document, stream, id, scramble_key, boundary)
  File "/usr/lib/calibre/calibre/ebooks/lrf/objects.py", line 68, in __init__
    self.handle_tag(tag, stream)
  File "/usr/lib/calibre/calibre/ebooks/lrf/objects.py", line 78, in handle_tag
    val = LRFObject.tag_to_val(h, self, tag, stream)
  File "/usr/lib/calibre/calibre/ebooks/lrf/objects.py", line 56, in tag_to_val
    val = getattr(obj, h[1])(tag, stream)
  File "/usr/lib/calibre/calibre/ebooks/lrf/objects.py", line 160, in 
read_stream
    raise LRFParseError('There can be only one stream per object')
calibre.ebooks.lrf.LRFParseError: There can be only one stream per object

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: calibre 0.9.18+dfsg-1
ProcVersionSignature: Ubuntu 3.8.0-15.25-generic 3.8.4
Uname: Linux 3.8.0-15-generic x86_64
ApportVersion: 2.9.2-0ubuntu5
Architecture: amd64
Date: Fri Mar 29 14:25:56 2013
InstallationDate: Installed on 2013-03-24 (4 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: calibre
UpgradeStatus: Upgraded to raring on 2013-03-24 (4 days ago)

** Affects: calibre (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug raring

-- 
You received this bug notification because you are a member of Edubuntu
Bugsquad, which is subscribed to calibre in Ubuntu.
https://bugs.launchpad.net/bugs/1161889

Title:
  Calibre fails to convert book with error
  calibre.ebooks.lrf.LRFParseError: There can be only one stream per
  object

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/calibre/+bug/1161889/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~edubuntu-bugs
Post to     : edubuntu-bugs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~edubuntu-bugs
More help   : https://help.launchpad.net/ListHelp

Reply via email to