Calibre fails converting to Mobi at final step

Bug #597101 reported by Psycona
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
calibre (Ubuntu)
Invalid
Undecided
Rolf Leggewie

Bug Description

Binary package hint: calibre

When converting an ebook from Lit, from txt converted from Lit, the conversion fails with the following log:

ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Anita Blake 08 - Blue Moon (v2.2))

Convert book 1 of 1 (Anita Blake 08 - Blue Moon (v2.2))
Resolved conversion options
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': '/tmp/calibre_0.6.42_a1jyAZ.jpeg',
 'debug_pipeline': None,
 'disable_font_rescaling': False,
 'dont_compress': False,
 'dont_justify': False,
 'extra_css': None,
 'font_size_mapping': None,
 'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)',
 'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)',
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x99f34ec>,
 'insert_blank_line': False,
 'insert_metadata': False,
 'isbn': None,
 '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,
 'markdown': False,
 'markdown_disable_toc': False,
 'max_toc_links': 50,
 'no_chapters_in_toc': False,
 'no_inline_navbars': False,
 'no_inline_toc': False,
 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x99f378c>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'prefer_author_sort': False,
 'prefer_metadata_cover': False,
 'preprocess_html': False,
 'pretty_print': False,
 'print_formatted_paras': False,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': '/tmp/calibre_0.6.42_LSU6MD.opf',
 'remove_first_image': False,
 'remove_footer': False,
 'remove_header': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'rescale_images': True,
 'series': None,
 'series_index': None,
 'single_line_paras': False,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'toc_title': None,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: TXT Input running
on /home/jhepburn/Desktop/Library/Laurell K. Hamilton/Anita Blake 08 - Blue Moon (v2.2) (43)/Anita Blake 08 - Blue Moon (v2.2) - Laurell K. Hamilton.txt
Reading text from file...
InputFormatPlugin: HTML Input running
on /home/jhepburn/Desktop/Library/Laurell K. Hamilton/Anita Blake 08 - Blue Moon (v2.2) (43)/temp_calibre_txt_input_to_html.html
Language not specified
Creator not specified
Title not specified
Building file list...
 Found files...
   HTMLFile:0:a:/home/jhepburn/Desktop/Library/Laurell K. Hamilton/Anita Blake 08 - Blue Moon (v2.2) (43)/temp_calibre_txt_input_to_html.html
Parsing temp_calibre_txt_input_to_html.html ...
Forcing temp_calibre_txt_input_to_html.html into XHTML namespace
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Creating MOBI Output...
Applying case-transforming CSS...
Parsing manglecase.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing markup content...
  Compressing markup content...
Generating flat CTOC ...
  CNCX utilization: 1 record, 0% full
  No entries found in TOC ...
  Writing unindexed mobi ...
Serializing images...
MOBI output written to /tmp/calibre_0.6.42_0C2mAD.mobi
ICE default IO error handler doing an exit(), pid = 22769, errno = 32

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: calibre 0.6.42+dfsg-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-23-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Tue Jun 22 14:42:42 2010
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: calibre

Revision history for this message
Psycona (jonathan-hepburn) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in calibre (Ubuntu):
status: New → Confirmed
Revision history for this message
ImConfused (ed-dori-robinov) wrote :

Xubuntu 11.04 : Actually I had trouble in converting both epub and pdf to mobi but my readout had the same statement. " Converting XHTML to Mobipocket markup" After then was the hangup. I upgraded with the binary (file contains all dependencies) to 0.8.24 from the Calibre website. It still had the same problem. The files that hung up in Xubuntu actually would convert when I used the Calibre 0.8.24 under Windows XP.

The following is a copy of my "details" at the end.

Applying case-transforming CSS...
Parsing manglecase.css ...
Rasterizing SVG images...
Converting XHTML to Mobipocket markup...
Serializing images...
Serializing markup content...
  Compressing markup content...
No TOC, MOBI index not generated
MOBI output written to /tmp/calibre_0.8.24_tmp_r0s3FQ/EJ9Ue9.mobi
ICE default IO error handler doing an exit(), pid = 9029, errno = 32

Revision history for this message
teranex (teranex) wrote :

I had the same problem and 'fixed' it by renaming ~/.ICEauthority to ~/.ICEauthority.bak
Also see http://oldbugs.calibre-ebook.com/ticket/6289

Revision history for this message
Barry Drake (b-drake) wrote :
Download full text (9.7 KiB)

I think this may be a different bug? I have not had this in earier versions of Ubuntu, and this occurs with a newly installed Raring testing from today's daily build. The output on converting from lit and epub to mobi is as follows:

calibre, version 0.9.0 (linux2, isfrozen: False)
Conversion Error: Failed: Convert book 1 of 1 (The First Cut)

Convert book 1 of 1 (The First Cut)
Resolved conversion options
calibre version: 0.9.0
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': u'justify',
 '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.0_tmp_wFP7rZ/ZwF7xw.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_compress': False,
 'duplicate_links_in_toc': False,
 '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 0x925c86c>,
 '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_file_type': u'old',
 'mobi_ignore_margins': False,
 'mobi_keep_original_images': False,
 'mobi_toc_at_start': False,
 'no_chapters_in_toc': False,
 'no_inline_navbars': True,
 'no_inline_toc': False,
 'output_profile': <calibre.customize.profiles.KindleOutput object at 0x944224c>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'personal_doc': u'[PDOC]',
 '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.0_tmp_wFP7rZ/6028O9.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,
 '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.0_tmp_wFP7rZ/mQ9C9X.lrf
Generating XML
Conve...

Read more...

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi Barry,

Yes, this is a different bug: It seems that you are missing python-lxml package.

But please, open a new bug and we'll continue there.

Thanks,

Fabrice

Revision history for this message
Rolf Leggewie (r0lf) wrote :

does this ever occur in trusty or later? Barry's problem was fixed in the meantime.

Changed in calibre (Ubuntu):
assignee: nobody → Rolf Leggewie (r0lf)
status: Confirmed → Incomplete
Revision history for this message
Rolf Leggewie (r0lf) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in calibre (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.