View Single Post
Old 01-24-2010, 03:34 AM   #1
solitaire
Connoisseur
solitaire began at the beginning.
 
solitaire's Avatar
 
Posts: 64
Karma: 30
Join Date: Dec 2009
Device: iPad, Galaxy S5
TXT->PDB (eReader) conversion error (Fixed in 0.6.36)

Hi I am using Calibre V 0.6.35. In previous versions I had successfully converted from txtx to pdb (ereader) format. However with this version I am getting an "unable to convert" error. I have no problems converting to pdb (doc) and ePub formats. This happens irrespective whether I choose MARKDOWN option or not.

I am not a programmer so I have no clue what to adjust. The log file is pasted here for reference. What an I doing wrong? Thanks.

__________________________________________________ ___
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Flyaway)

Convert book 1 of 1 (Flyaway)
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:\\users\\rajiv\\appdata\\local\\temp\\calibre_0 .6.35_ox8krh.jpeg',
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_justify': 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>)' ,
'format': u'ereader',
'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>)' ,
'inline_toc': False,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x04AAAE90>,
'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,
'markdown': True,
'markdown_disable_toc': False,
'max_toc_links': 50,
'no_chapters_in_toc': False,
'no_inline_navbars': False,
'output_encoding': 'cp1252',
'output_profile': <calibre.customize.profiles.NookOutput object at 0x04AB4270>,
'page_breaks_before': u'/',
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': False,
'print_formatted_paras': True,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\rajiv\\appdata\\local\\temp\\calibre_0 .6.35_xm99v_.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,
'single_line_paras': True,
'tags': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: TXT Input running
on D:\My Documents\My eBooks\Calibre\Desmond Bagley\Flyaway (270)\Flyaway - Desmond Bagley.txt
Reading text from file...
Running text though markdown conversion...
InputFormatPlugin: HTML Input running
on D:\My Documents\My eBooks\Calibre\Desmond Bagley\Flyaway (270)\temp_calibre_txt_input_to_html.html
Language not specified
Creator not specified
Title not specified
Building file list...
Found files...
HTMLFile:0:a:\My Documents\My eBooks\Calibre\Desmond Bagley\Flyaway (270)\temp_calibre_txt_input_to_html.html
Parsing temp_calibre_txt_input_to_html.html ...
Forcing temp_calibre_txt_input_to_html.html into XHTML namespace
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Parsing stylesheet.css ...
Creating PDB Output...
Converting XHTML to PML markup...
Converting temp_calibre_txt_input_to_html.html to PML markup...
Python function terminated unexpectedly
'NookOutput' object has no attribute 'dont_justify' (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 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 852, in run
File "site-packages\calibre\ebooks\pdb\output.py", line 58, in convert
File "site-packages\calibre\ebooks\pdb\ereader\writer.py", line 42, in write_content
File "site-packages\calibre\ebooks\pml\pmlml.py", line 93, in extract_content
File "site-packages\calibre\ebooks\pml\pmlml.py", line 101, in pmlmlize_spine
File "site-packages\calibre\ebooks\pml\pmlml.py", line 141, in get_text
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 169, in __init__
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 233, in flatten_rule
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 257, in flatten_style
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 322, in _normalize_text_align
AttributeError: 'NookOutput' object has no attribute 'dont_justify'

Last edited by solitaire; 01-25-2010 at 07:38 PM.
solitaire is offline   Reply With Quote