Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2015, 04:10 AM   #1
aDragonOr2
Junior Member
aDragonOr2 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2015
Device: Kindle Paperwhite
Calibre fails book conversion when outputing file.

I am currently trying to convet an HTML file to MOBI and I am getting a "Failed: Convert Book 1 of 1" error. I tried making a clean HTML to see if it was something to do with that. Using an HTML file with these contents:
Quote:
<html><body><title>Test</title><p>herllo<p></body></html>
I get this error:

Spoiler:
Code:
Convert book 1 of 1 (Test)
Processing archive...
Resolved conversion options
calibre version: 2.31.0
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'breadth_first': False,
 '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': None,
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_compress': False,
 'dont_package': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'expand_css': 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 0x7fb3dbbfa210>,
 '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_levels': 5,
 '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.KindlePaperWhiteOutput object at 0x7fb3dbbfa950>,
 '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_2.31.0_tmp_nOF_6U/zkD5J8.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: HTML Input running
on /tmp/calibre_2.31.0_tmp_nOF_6U/sjzpnW_pl_arc/content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing Test.html ...
Generating default TOC from spine...
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
Removing fake margins...
Found 2 items of level: p_1
Ignoring level p_1
Cleaning up manifest...
Trimming unused files from manifest...
Creating MOBI Output...
Serializing resources...
Creating MOBI 6 output
Applying case-transforming CSS...
Parsing manglecase.css ...


I have tried with other file types and I got similar errors. I don't have any plugins installed and I am running this on Arch Linux.

Last edited by BetterRed; 07-16-2015 at 04:31 AM. Reason: Wrap diagnostics in spoiler
aDragonOr2 is offline   Reply With Quote
Old 07-16-2015, 05:06 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
<title> does NOT belong inside the Body Tag pair
theducks is offline   Reply With Quote
Advert
Old 07-16-2015, 05:15 AM   #3
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,010
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
In fact it should be:

<html>
<head>
<title>Test</title>
</head>
<body>
<p>hello<p>
</body>
</html>
DrChiper is offline   Reply With Quote
Old 07-16-2015, 11:24 AM   #4
aDragonOr2
Junior Member
aDragonOr2 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2015
Device: Kindle Paperwhite
Still getting the same error after changing the HTML file.
aDragonOr2 is offline   Reply With Quote
Old 07-16-2015, 11:28 AM   #5
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: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There's no actual error in your log, did you skip out the last bit?

Last edited by kovidgoyal; 07-16-2015 at 11:40 AM.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-16-2015, 11:40 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
It works for me.

Steps I used:
  1. Create a text file containing correct HTML (the closing paragraph tag in the examples above is not correct). Name it "New Text Document.html"
    Code:
    <html>
    <head>
    <title>Test</title>
    </head>
    <body>
    <p>hello</p>
    </body>
    </html>
  2. Drag the html file onto calibre. It is added as a ZIP format.
  3. Convert the ZIP format to mobi. I get a mobi file. The job details are
    Spoiler:
    Convert book 1 of 1 (Test)
    Processing archive...
    Resolved conversion options
    calibre version: 2.31.0
    {'asciiize': False,
    'author_sort': None,
    'authors': None,
    'base_font_size': 0.0,
    'book_producer': None,
    'breadth_first': False,
    'change_justification': u'original',
    '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': None,
    'debug_pipeline': None,
    'dehyphenate': True,
    'delete_blank_paragraphs': True,
    'disable_font_rescaling': False,
    'dont_compress': False,
    'dont_package': False,
    'duplicate_links_in_toc': False,
    'embed_all_fonts': False,
    'embed_font_family': None,
    'enable_heuristics': False,
    'expand_css': 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 0x0000000004F0B358>,
    '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_levels': 5,
    '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': False,
    'no_inline_toc': False,
    'output_profile': <calibre.customize.profiles.GenericEink object at 0x0000000004F0B6D8>,
    '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'C:\\Users\\xxx\\AppData\\Local\\Temp\\calibre_6f wmuw\\jbqq72.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: HTML Input running
    on C:\Users\xxx\AppData\Local\Temp\calibre_6fwmuw\sim llf_pl_arc\content.opf
    Parsing all content...
    Manifest item 'toc.ncx' not found
    Parsing New Text Document.html ...
    Generating default TOC from spine...
    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
    Removing fake margins...
    Found 1 items of level: p_1
    Ignoring level p_1
    Cleaning up manifest...
    Trimming unused files from manifest...
    Creating MOBI Output...
    Serializing resources...
    Creating MOBI 6 output
    Applying case-transforming CSS...
    Parsing manglecase.css ...
    Rasterizing SVG images...
    Converting XHTML to Mobipocket markup...
    Serializing markup content...
    Compressing markup content...
    No TOC, MOBI index not generated
    MOBI output written to C:\Users\xxx\AppData\Local\Temp\calibre_6fwmuw\iio lp6.mobi
Input and output files are attached.
Attached Files
File Type: zip Test - Unknown.zip (1.3 KB, 150 views)
File Type: mobi Test - Unknown.mobi (8.9 KB, 133 views)
chaley is offline   Reply With Quote
Old 07-16-2015, 05:16 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Are you using the distro calibre? Check out my bugreport on the archlinux bug tracker, then install "calibre-installer" from the AUR.

(That is my systemd timer also stickied in the Related Tools subforum here, as an automatic updater for Kovid's binaries.)
eschwartz is offline   Reply With Quote
Old 07-16-2015, 10:04 PM   #8
aDragonOr2
Junior Member
aDragonOr2 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2015
Device: Kindle Paperwhite
Quote:
There's no actual error in your log, did you skip out the last bit?
I copied the entire log. I can give a screen shot if that would help.

Quote:
Originally Posted by eschwartz View Post
Are you using the distro calibre? Check out my bugreport on the archlinux bug tracker, then install "calibre-installer" from the AUR.

(That is my systemd timer also stickied in the Related Tools subforum here, as an automatic updater for Kovid's binaries.)
Can I get a link to this?
aDragonOr2 is offline   Reply With Quote
Old 07-16-2015, 10:17 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I typed that on my Kindle Touch.

Arch Bugs: [calibre] 2.15.0-1 changes to upstream in PKGBUILD

MR thread: Fully automatic calibre installer/updater for linux (AUR)


Tell us if switching to the binaries from http://calibre-ebook.com/download_linux fixes the problem.
eschwartz is offline   Reply With Quote
Old 07-17-2015, 11:45 AM   #10
aDragonOr2
Junior Member
aDragonOr2 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2015
Device: Kindle Paperwhite
Quote:
Originally Posted by eschwartz View Post
I typed that on my Kindle Touch.

Arch Bugs: [calibre] 2.15.0-1 changes to upstream in PKGBUILD

MR thread: Fully automatic calibre installer/updater for linux (AUR)


Tell us if switching to the binaries from http://calibre-ebook.com/download_linux fixes the problem.
Thanks, that seems to have fixed the issue.
aDragonOr2 is offline   Reply With Quote
Old 07-19-2015, 06:54 PM   #11
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Feel free to drop by and leave a comment on the bug tracker.
Thus far I am the only person to kick up a fuss, so they are ignoring me.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion fails when book file is large and library is in Dropbox pablo2340 Conversion 4 03-03-2014 09:23 AM
DOCX file conversion in Calibre mitch13 Library Management 4 10-08-2013 12:48 AM
ComicInfo.xml file in comic book conversion aido Conversion 2 07-29-2013 08:32 PM
Calibre file conversion legal? raceon4 Calibre 9 09-18-2010 12:11 AM
File conversion in Book Designer gk59 Sony Reader 3 04-18-2008 07:22 AM


All times are GMT -4. The time now is 05:46 AM.


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