Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-26-2011, 02:02 PM   #1
siebert
Developer
siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.
 
Posts: 136
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 3 WiFi / Nexus 4 (Android)
Conversion error when converting zip to epub

Hi,

I add a new book to calibre by pointing to a single simple html file, which results in an ebook in zip format.

I then convert the zip to epub and get the following error:
Code:
calibre, version 0.7.47
ERROR: Konvertierungsfehler: <b>Misslungen</b>: Convert book 1 of 1 (test)

No module named icu
No module named icu
Convert book 1 of 1 (test)
Processing archive...
Resolved conversion options
calibre version: 0.7.47
{'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|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_package': False,
 'dont_split_on_page_breaks': False,
 'enable_heuristics': False,
 'epub_flatten': True,
 'extra_css': None,
 'extract_to': None,
 'fix_indents': True,
 'flow_size': 260,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.40000000000000002,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x05C50CD0>,
 'insert_blank_line': False,
 '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,
 'no_chapters_in_toc': False,
 'no_default_epub_cover': False,
 'no_inline_navbars': False,
 'no_svg_cover': False,
 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x05C50EB0>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': 'c:\\users\\steffe~1.sie\\appdata\\local\\temp\\calibre_0.7.47_tmp_peixjs\\calibre_0.7.47_zme0hf.opf',
 'remove_first_image': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'renumber_headings': True,
 'replace_scene_breaks': u'',
 'series': None,
 'series_index': None,
 'smarten_punctuation': False,
 'sr1_replace': None,
 'sr1_search': None,
 'sr2_replace': None,
 'sr2_search': None,
 'sr3_replace': None,
 'sr3_search': None,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: HTML Input running
on c:\users\steffe~1.sie\appdata\local\temp\calibre_0.7.47_tmp_peixjs\calibre_0.7.47_ygvcqf_plumber_archive\content.opf
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing test.html ...
Generating default TOC from spine...
Python function terminated unexpectedly
  'OEBBook' object has no attribute 'rfind' (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 "C:\Users\steffen.siebert\Documents\My Dropbox\workspace\calibre\src\calibre\utils\ipc\worker.py", line 110, in main
    result = func(*args, **kwargs)
  File "C:\Users\steffen.siebert\Documents\My Dropbox\workspace\calibre\src\calibre\gui2\convert\gui_conversion.py", line 31, in gui_convert_override
    override_input_metadata=True)
  File "C:\Users\steffen.siebert\Documents\My Dropbox\workspace\calibre\src\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
    plumber.run()
  File "C:\Users\steffen.siebert\Documents\My Dropbox\workspace\calibre\src\calibre\ebooks\conversion\plumber.py", line 909, in run
    oebExt = os.path.splitext(self.oeb)[1]
  File "ntpath.py", line 190, in splitext
  File "genericpath.py", line 91, in _splitext
AttributeError: 'OEBBook' object has no attribute 'rfind'
The content of the html doesn't seem to matter, I can reproduce it with a file containing the following content:

Code:
<html><header></header><body><h1>Test</h1>Test text.</body></html>
Ciao,
Steffen
siebert is offline   Reply With Quote
Old 02-26-2011, 09:47 PM   #2
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: 25,938
Karma: 5036099
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The line numbers in your traceback dont match my source which means you are running a patched/obsolete code base. Update/remove the patches and you will be fine.
kovidgoyal is offline   Reply With Quote
Old 02-27-2011, 11:40 AM   #3
siebert
Developer
siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.siebert has a complete set of Star Wars action figures.
 
Posts: 136
Karma: 280
Join Date: Nov 2010
Device: Kindle 3 (Keyboard) 3G / iPad 3 WiFi / Nexus 4 (Android)
Quote:
Originally Posted by kovidgoyal View Post
The line numbers in your traceback dont match my source which means you are running a patched/obsolete code base.
Hi,

you are correct, the broken code isn't part of the official calibre code base.

I apologize for my mistake.

Ciao,
Steffen
siebert is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error converting mobi to epub babyd Calibre 2 10-06-2010 01:32 PM
Error converting from epub to mobi kornhill Calibre 5 06-28-2010 09:27 PM
Epub Fixer Error: "zip error: 15" Gordo29 Kobo Reader 0 06-26-2010 01:57 PM
ERROR when converting mobi to epub? help! (new at this) dalpod Calibre 2 04-14-2010 12:52 PM
Error Converting Zip Files w/ Multiple Formats TheHeartlessHero Calibre 2 04-10-2010 10:54 AM


All times are GMT -4. The time now is 08:44 AM.


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