01-09-2011, 04:47 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Location: Toronto, Canada
Device: Kindle
|
HTML to Mobi conversion fails
Hi,
I new both to Kindle and Calibre, so forgive my naiveté. I''ve been doing really well, but a bunch PDF and HTML books I imported to Calibre came up as ZIP, and I couldn't do anything with them - no conversions possible. I re-did the imports and they came in as HTML, but when I try to convert I get an error message saying conversion failed. I've even tried printing as a PDF, but that doesn't seem to help either. I include the conversion error below. Please excuse me if this is an obvious previously answered issue. I did search for an answer. Cheers, Michael PS: The error thing was too long. If anyone needs to see it I can get one quickly enough. Also, I'm using a MAC OSX Intel. Last edited by gilbert1111; 01-09-2011 at 04:59 PM. |
01-09-2011, 05:21 PM | #2 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Location: Toronto, Canada
Device: Kindle
|
Got it. Here's what I did, and while it's a PIA, if you only do it when you actually want to read the book, it's not too bad. The process is simple.
1. I opened the HTML file in a browser. 2. I copied it using ^A 3. inserted into a blank Word file and did a FILE SAVE AS to a PDF 4. Imported that into Calibre 5. converted easily to MOBI and it went to my Kindle without any issues. So, for mass conversions it's not handy, but if you are doing it for what you want to read at that time, it's fine. Comments welcome. Cheers, Michael |
Advert | |
|
01-09-2011, 06:51 PM | #3 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
That's a really complicated workaround - Calibre should be able to convert the html/pdf directly. Not sure how you're adding the books - pdf should never wind up as a zipped file in Calibre. HTML will be converted by Calibre to a zip file so all the related html files can be held together. As long as Calibre zipped it and you didn't zip it yourself you should be ok. Try adding the books by dragging'n'dropping the files from explorer/finder to Calibre's book list.
If you've imported the books correctly and you're still having a problem then we would need to see the error messages you received during conversion to help you - alternatively you can just post a sample with the error messages to bugs.calibre-ebook.com. |
01-11-2011, 05:02 PM | #4 |
Enthusiast
Posts: 26
Karma: 23438
Join Date: Nov 2009
Device: K2, K3(3G-WIFI), Fire
|
I have been unable to convert any html to mobi since the last upgrade.
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (CRAZY FOR YOU - JENNIFER CRUSIE) Convert book 1 of 1 (CRAZY FOR YOU - JENNIFER CRUSIE) Processing archive... Resolved conversion options calibre version: 0.7.38 {'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, 'disable_font_rescaling': False, 'dont_compress': 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>)' , 'html_unwrap_factor': 0.4, 'input_encoding': '', 'input_profile': <calibre.customize.profiles.InputProfile object at 0x0583B270>, 'insert_blank_line': False, 'insert_metadata': False, 'isbn': None, '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, 'max_levels': 5, 'max_toc_links': 50, 'minimum_line_height': 120.0, 'mobi_ignore_margins': False, 'no_chapters_in_toc': False, 'no_inline_navbars': True, 'no_inline_toc': False, 'output_profile': <calibre.customize.profiles.KindleOutput object at 0x0583B550>, 'page_breaks_before': u"//*[name()='h1' or name()='h2']", 'personal_doc': u'[PDOC]', 'prefer_author_sort': False, 'prefer_metadata_cover': False, 'preprocess_html': False, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': 'c:\\users\\doncou~1\\appdata\\local\\temp\\calibr e_0.7.38_tmp_pa2hwl\\calibre_0.7.38_nsry4o.opf', 'remove_first_image': False, 'remove_footer': False, 'remove_header': False, 'remove_paragraph_spacing': True, 'remove_paragraph_spacing_indent_size': 1.5, 'rescale_images': False, 'series': None, 'series_index': None, 'smarten_punctuation': 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: HTML Input running on c:\users\doncou~1\appdata\local\temp\calibre_0.7.3 8_tmp_pa2hwl\calibre_0.7.38_0npqmp_plumber\content .opf Parsing all content... Python function terminated unexpectedly unknown encoding: (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 107, 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 853, in run File "site-packages\calibre\customize\conversion.py", line 216, in __call__ File "site-packages\calibre\ebooks\html\input.py", line 300, in convert File "site-packages\calibre\ebooks\conversion\plumber.py", line 990, in create_oebbook File "site-packages\calibre\ebooks\oeb\reader.py", line 71, in __call__ File "site-packages\calibre\ebooks\oeb\reader.py", line 104, in _read_opf File "site-packages\calibre\ebooks\oeb\base.py", line 1897, in decode LookupError: unknown encoding: |
01-11-2011, 05:16 PM | #5 |
Enthusiast
Posts: 26
Karma: 23438
Join Date: Nov 2009
Device: K2, K3(3G-WIFI), Fire
|
Fixed it.
Uninstalled calibre and reinstalled it and everything works OK niow. Thanks to theducks on this thread: https://www.mobileread.com/forums/sho...d.php?t=115422 |
Advert | |
|
01-14-2011, 10:23 AM | #6 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2011
Location: Toronto, Canada
Device: Kindle
|
Wow! That did it! Thanks fulltimer and theducks. And I was so proud of finding that workaround...
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
clean HTML or PDF before mobi conversion in Calibre | mark235 | Calibre | 9 | 12-25-2010 09:37 PM |
conversion html -> mobi read on kindle | manonoc | Kindle Developer's Corner | 4 | 11-24-2010 11:01 AM |
Can't convert MOBI to EPUB.. conversion FAILS | wallace.webmail | Calibre | 5 | 07-16-2010 12:45 AM |
Conversion from LIT fails | JSWolf | Calibre | 1 | 01-22-2010 12:22 PM |
Mobigen Mass Batch conversion of HTML-Single-File ebooks to .mobi ebooks | cklammer | Kindle Formats | 9 | 11-20-2009 03:00 AM |