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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-11-2010, 11:42 AM   #1
Joerg_Mosthaf
Connoisseur
Joerg_Mosthaf began at the beginning.
 
Joerg_Mosthaf's Avatar
 
Posts: 71
Karma: 21
Join Date: May 2008
Location: Heidelberg, Germany
Device: Kindle3, Kindle2i, iPhone
Conversion Error lrf -> mobi/epub (Calibre 0.6.33)

I just installed calibre 0.6.33 and then tried to import a lrf book from mobileread (Flatland by Edwin A Abbott).
When I try to convert it to epub (or mobi), calibre fails with the following message:
Code:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (FLATLAND)

Convert book 1 of 1 (FLATLAND)
Resolved conversion options
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 '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': 'c:\\temp\\calibre_0.6.33_r9lsym.jpeg',
 'debug_pipeline': None,
 'disable_font_rescaling': False,
 'dont_justify': 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 0x0281BF10>,
 '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_toc_links': 50,
 'no_chapters_in_toc': False,
 'no_default_epub_cover': False,
 'no_inline_navbars': False,
 'output_profile': <calibre.customize.profiles.KindleOutput object at 0x027C7230>,
 'page_breaks_before': u'/',
 'prefer_metadata_cover': False,
 'preprocess_html': False,
 'pretty_print': True,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': 'c:\\temp\\calibre_0.6.33_j5t0vn.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,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: LRF Input running
on D:\mosthafjoerg\My Dropbox\eBooks\Edwin A. Abbott\FLATLAND (690)\FLATLAND - Edwin A. Abbott.lrf
Generating XML
Python function terminated unexpectedly
  Malformed text stream ['CharButton'] (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\lrf\input.py", line 367, in convert
  File "site-packages\calibre\ebooks\lrf\lrfparser.py", line 113, in to_xml
  File "site-packages\calibre\ebooks\lrf\objects.py", line 420, in __unicode__
  File "site-packages\calibre\ebooks\lrf\objects.py", line 606, in __unicode__
  File "site-packages\calibre\ebooks\lrf\objects.py", line 884, in __unicode__
calibre.ebooks.lrf.LRFParseError: Malformed text stream ['CharButton']
The book displays without problems in the calibre ebook-viewer.
I then searched and found a prc version of the book and tried to add it to the book in calibre and got the following error:
Code:
ERROR: ERROR: Unhandled exception: <b>TypeError</b>:coercing to Unicode: need string or buffer, NoneType found

Traceback (most recent call last):
  File "site-packages\calibre\gui2\dialogs\metadata_single.py", line 138, in add_format
  File "site-packages\calibre\gui2\dialogs\metadata_single.py", line 152, in _add_formats
TypeError: coercing to Unicode: need string or buffer, NoneType found
When I try to just add the prc to Calibre (after deleting the previous version) I get an error message about problems with the metadata, but the book itself gets imported (without any metadata) and can then be converted (but the pictures get distorted in the mobi file).
Any Idea?

Last edited by Joerg_Mosthaf; 01-11-2010 at 11:51 AM. Reason: clarification
Joerg_Mosthaf is offline   Reply With Quote
Old 01-11-2010, 12:23 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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hard to say more without seeing the file. Open a ticket and attach it (the prc version).
kovidgoyal is offline   Reply With Quote
Old 01-13-2010, 08:40 AM   #3
Joerg_Mosthaf
Connoisseur
Joerg_Mosthaf began at the beginning.
 
Joerg_Mosthaf's Avatar
 
Posts: 71
Karma: 21
Join Date: May 2008
Location: Heidelberg, Germany
Device: Kindle3, Kindle2i, iPhone
Ok, submitted two new tickets for the two parts of the Problem.
Joerg_Mosthaf 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
How can I cure this error in mobi to epub conversion? Patricia1066 Calibre 1 03-17-2010 07:56 AM
MOBI vers LRF: Problème de conversion avec Calibre alaouet Assistance 6 02-18-2010 06:11 PM
MOBI to LRF: Conversion troubles with Calibre alaouet Calibre 11 02-10-2010 07:27 AM
Calibre 0.6.32 - pdb to epub conversion error niche99 Calibre 4 01-23-2010 01:13 PM
Conversion from Mobi to LRF error jessie102 Calibre 2 08-16-2008 01:00 PM


All times are GMT -4. The time now is 05:36 PM.


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