01-05-2010, 04:05 PM | #1 |
Groupie
Posts: 193
Karma: 1032826
Join Date: Mar 2008
Location: Miami, FL, USA
Device: iPhone 4, iPad 2
|
Spine is empty?
I am attempting to convert an HTML file to EPUB and fails with this error:
calibre.ebooks.oeb.base.OEBError: Spine is empty Code:
Convert book 1 of 10 (System Corruption) 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' or name()='h3' or name()='h4']", 'chapter_mark': u'pagebreak', 'comments': None, 'cover': 'c:\\users\\arturo\\appdata\\local\\temp\\calibre_0.6.31_5tzyps.jpeg', 'debug_pipeline': None, 'disable_font_rescaling': False, 'dont_justify': False, 'dont_package': False, 'dont_split_on_page_breaks': False, 'extra_css': None, 'extract_to': None, 'flow_size': 260, '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 0x03B38810>, '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_default_epub_cover': False, 'no_inline_navbars': False, 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x03B389D0>, 'page_breaks_before': u'/', 'prefer_metadata_cover': False, 'preprocess_html': False, 'pretty_print': True, 'publisher': None, 'rating': None, 'read_metadata_from_opf': 'c:\\users\\arturo\\appdata\\local\\temp\\calibre_0.6.31_lj4chs.opf', 'remove_first_image': False, 'remove_footer': False, 'remove_header': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'series': None, 'series_index': None, 'tags': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'unwrap_factor': 0.0, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: HTML Input running on c:\users\arturo\appdata\local\temp\calibre_0.6.31_rnlgyx_plumber\content.opf Parsing all content... Manifest item 'toc.ncx' not found Python function terminated unexpectedly Spine is empty (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 90, 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 736, in run File "site-packages\calibre\customize\conversion.py", line 208, in __call__ File "site-packages\calibre\ebooks\html\input.py", line 291, in convert File "site-packages\calibre\ebooks\conversion\plumber.py", line 866, in create_oebbook File "site-packages\calibre\ebooks\oeb\reader.py", line 72, in __call__ File "site-packages\calibre\ebooks\oeb\reader.py", line 589, in _all_from_opf File "site-packages\calibre\ebooks\oeb\reader.py", line 289, in _spine_from_opf calibre.ebooks.oeb.base.OEBError: Spine is empty Thank you in advance. Art |
01-05-2010, 07:49 PM | #2 |
creator of calibre
Posts: 44,512
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
check to make sure your html file has an opening <html> tag
|
Advert | |
|
01-12-2010, 09:48 PM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2010
Device: iPhone/Stanza
|
Same problem, here's my html
Hi. I have the same problem. I'm using Calibre Version 6.33. I want to convert an html file to ePub, keeping the html as simple as possible. I get the following error log when trying the conversion.
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (ADV3) Convert book 1 of 1 (ADV3) 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_justify': False, 'dont_package': False, 'dont_split_on_page_breaks': True, 'extra_css': None, 'extract_to': None, 'flow_size': 260, '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 0x04CFD750>, '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': True, 'no_default_epub_cover': False, 'no_inline_navbars': False, 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x04CFD910>, 'page_breaks_before': u"//*[name()='h1' or name()='h2']", 'prefer_metadata_cover': False, 'preprocess_html': False, 'pretty_print': True, 'publisher': None, 'rating': None, 'read_metadata_from_opf': 'c:\\users\\les\\appdata\\local\\temp\\calibre_0.6 .33_jrx4uf.opf', 'remove_first_image': False, 'remove_footer': False, 'remove_header': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'series': None, 'series_index': None, 'tags': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'unwrap_factor': 0.0, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: HTML Input running on c:\users\les\appdata\local\temp\calibre_0.6.33_xe7 amr_plumber\content.opf Parsing all content... Manifest item 'toc.ncx' not found Python function terminated unexpectedly Spine is empty (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 745, in run File "site-packages\calibre\customize\conversion.py", line 208, in __call__ File "site-packages\calibre\ebooks\html\input.py", line 291, in convert File "site-packages\calibre\ebooks\conversion\plumber.py", line 877, in create_oebbook File "site-packages\calibre\ebooks\oeb\reader.py", line 72, in __call__ File "site-packages\calibre\ebooks\oeb\reader.py", line 589, in _all_from_opf File "site-packages\calibre\ebooks\oeb\reader.py", line 289, in _spine_from_opf calibre.ebooks.oeb.base.OEBError: Spine is empty Following is a sample of the html I'm using. It displays just fine when opened in a browser: <html> <body> <h3>AGAIN, DANGEROUS VISIONS</h3> <p></p> <p>Harlan Ellison </p> <p></p> <p>INTRODUCTION </p> <p></p> <p>An Assault of New Dreamers </p> <p></p> <p>Dumas wrote The Three Musketeers in 1844. Popular demand compelled him to write two sequels, Vingt Ans Apres in 1845 and Le* Vicomte de Bragelonne in 1848. Arthur Conan Doyle grew tired of Sherlock Holmes and ended his career as a criminologist (as well as that of Professor Moriarty as a master criminal) with a tumble over the Reichenbach Falls in "The Final Problem." The public would have none of it. Doyle, pressed to the wall, revived his immortal sleuth three years later with "The Adventure of the Empty House." In 1959 Evan S. Connell, Jr. wrote Mrs. Bridge and it became an instant classic of contemporary fiction. No sequel was possible, but the name became a literary catchphrase, and in 1969 Mr. Connell wrote Mr. Bridge. The creators of Captain America killed off that star-spangled warrior for Democracy and the American Way near the end of World War II. In the early Sixties the Sub-Mariner, Prince Namor of Atlantis, found Cap floating around perfectly preserved in a block of ice, and revived him. Isaac Asimov has had to suffer sequelization many times. No one will let him stop telling stories of Dr. Susan Calvin and her U.S. Robots and Mechanical Men, Inc.; stories of the Foundation; stories of Lije Bailey and R. Daneel Olivaw. Ike is resigned. They have lives of their own. I did not want to edit another Dangerous Visions. </p> </body> </html> Please, any suggestions? I've tried input files of TXT and RTF, but html seems to work as the best format for my preferred reader (iPhone with Stanza app) Thanks |
01-12-2010, 10:01 PM | #4 |
creator of calibre
Posts: 44,512
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That html converts fine for me. How exctly are you converting it?
|
01-12-2010, 10:13 PM | #5 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2010
Device: iPhone/Stanza
|
I use "Add Books" to import the file, have conversion set to ePub, highlight title, choose "Convert E-Books". I have no cover image, "Look and Feel" boxes all blank (ditto on "Structure Detection"), "Page Setup" set to "Default Output Profile", TOC has "Do not add detected chapters" checked, "EPUB Output" has "Do not split on page breaks" checked.
|
Advert | |
|
01-12-2010, 10:48 PM | #6 |
creator of calibre
Posts: 44,512
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Try cleaning out and re-installing calibre. See the first entry here:
http://calibre-ebook.com/user_manual...ing-on-windows |
01-12-2010, 11:24 PM | #7 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2010
Device: iPhone/Stanza
|
Quote:
|
|
01-12-2010, 11:35 PM | #8 |
creator of calibre
Posts: 44,512
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What's the name of the html file on your system?
|
01-12-2010, 11:50 PM | #9 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2010
Device: iPhone/Stanza
|
Calibre html
|
01-13-2010, 12:53 PM | #10 |
creator of calibre
Posts: 44,512
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Tried it on windows as well, with that file name and it still works for me, so I really have no idea why it's not working for you
|
01-13-2010, 03:02 PM | #11 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2010
Device: iPhone/Stanza
|
OK
Thanks for trying, and thanks for a great open-source product. It really is a great piece of software.
|
01-13-2010, 05:26 PM | #12 |
Boo-Frickety-Hoo-Erizer
Posts: 251
Karma: 686
Join Date: Oct 2007
Device: Kobo Glo HD!
|
I've found that if my file(s) aren't in utf-8 encoding, I get the error.
When I re-save them in utf-8, that takes care of it. -bjc |
02-04-2010, 09:04 PM | #13 |
Enthusiast
Posts: 37
Karma: 10
Join Date: Feb 2010
Device: mobi, epub, lit
|
I am having the same problem, using Calibre on the Mac. Every time I try to convert an HTML file into ANY ebook format I get a spine is empty error. I have my HTML file in UTF-8 but that didn't help.
Any idea what's going on? I'd be happy to provide you with the original HTML file, kovidgoyal, if that will help. Thanks, Guido ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (DemonsNight) Convert book 1 of 1 (DemonsNight) 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_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 0x63f0b50>, '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': False, 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x63f0d10>, 'page_breaks_before': u"//*[name()='h1' or name()='h2']", 'prefer_metadata_cover': False, 'preprocess_html': False, 'pretty_print': False, 'publisher': None, 'rating': None, 'read_metadata_from_opf': '/var/folders/rX/rXWGE5kyEK0nkF0NIl6GnU+++TI/-Tmp-/calibre_0.6.37_SAlIls.opf', 'remove_first_image': False, 'remove_footer': False, 'remove_header': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'series': None, 'series_index': None, 'tags': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'unwrap_factor': 0.0, 'use_auto_toc': False, 'verbose': 2} Python function terminated unexpectedly: Spine is empty InputFormatPlugin: HTML Input running on /var/folders/rX/rXWGE5kyEK0nkF0NIl6GnU+++TI/-Tmp-/calibre_0.6.37_c0GICZ_plumber/content.opf Parsing all content... Manifest item 'toc.ncx' not found Traceback (most recent call last): File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 147, in main return run_entry_point() File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 116, in run_entry_point return getattr(pmod, func)() File "site-packages/calibre/utils/ipc/worker.py", line 99, in main File "site-packages/calibre/gui2/convert/gui_conversion.py", line 24, in gui_convert File "site-packages/calibre/ebooks/conversion/plumber.py", line 745, in run File "site-packages/calibre/customize/conversion.py", line 211, in __call__ File "site-packages/calibre/ebooks/html/input.py", line 291, in convert File "site-packages/calibre/ebooks/conversion/plumber.py", line 877, in create_oebbook File "site-packages/calibre/ebooks/oeb/reader.py", line 72, in __call__ File "site-packages/calibre/ebooks/oeb/reader.py", line 589, in _all_from_opf File "site-packages/calibre/ebooks/oeb/reader.py", line 289, in _spine_from_opf calibre.ebooks.oeb.base.OEBError: Spine is empty |
02-05-2010, 12:30 PM | #14 |
creator of calibre
Posts: 44,512
Karma: 24495778
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
open a ticket and attach the file.
|
02-05-2010, 01:57 PM | #15 |
Enthusiast
Posts: 37
Karma: 10
Join Date: Feb 2010
Device: mobi, epub, lit
|
Kovid,
I have just created the ticket and attached a HTML file that generates the error. Thanks for looking into this. Guido |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Do any third-party cover makers use the 'spine' on the Sony readers? | maxbookworm | Sony Reader | 7 | 09-14-2010 05:15 AM |
Pick up Spine Slaughter for nowt on Smashwords | NickSpalding | Self-Promotions by Authors and Publishers | 0 | 08-27-2010 01:27 PM |
.7 Catalog is empty | leebase | Calibre | 7 | 06-06-2010 09:09 PM |
Unutterably Silly Empty your clipboard | Godzil | Lounge | 28 | 02-01-2010 07:26 AM |
Bebook is empty | Lake person | BeBook | 15 | 08-30-2009 03:09 PM |