Hey Guys,
Thanks for any replies in advanced and apologies if this is a simple fix, I'm new to Calibre and loving it but I have one problem. I have an HTML book and it imports into Calibre fine but when converting it for output to Kindle I recieve an error with the output below. This book was a .chm that I broke down using another program, I am not sure if that is relevant but I had some problems using other .chm conversion tools so I resorted to this.
I have tried just throwing the html file as a txt on but the formatting is awful that way and a merged html file is too big to browse with the web browser.
If anyone can solve my Calibre conundrum or figure another way to get this book on my Kindle I would be most grateful.
Regards,
BT
Convert book 1 of 1
Processing archive...
Resolved conversion options
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'breadth_first': False,
'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,
'disable_font_rescaling': False,
'dont_compress': False,
'dont_justify': False,
'dont_package': 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 0x04BEA8D0>,
'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,
'max_levels': 5,
'max_toc_links': 50,
'no_chapters_in_toc': False,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x04BEABD0>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': False,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\******~1\\appdata\\local\\temp\\calibr e_0.6.33_setljy.opf',
'remove_first_image': False,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'rescale_images': False,
'series': None,
'series_index': None,
'tags': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'unwrap_factor': 0.0,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: HTML Input running
on c:\users\******~1\appdata\local\temp\calibre_0.6.3 3_swccki_plumber\content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing Basic%20and%20Clinical%20Pharmacology.html ...
Parsing ___left.htm ...
Referenced file '___dtree.css' not found
Referenced file '___dtree.js' not found
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Python function terminated unexpectedly
max() arg is an empty sequence (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 103, in main
File "site.py", line 85, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 96, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 21, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 825, in run
File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py" , line 123, in __call__
File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py" , line 167, in baseline_spine
ValueError: max() arg is an empty sequence