Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-09-2010, 04:36 AM   #1
cistehovado
Member
cistehovado began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Dec 2009
Device: iphone
Problem with Calibre

Hello, I tried to use calibre, but 90% of my pdb collection shows error :
(they worked in my Palm T3, but I bought iphone and I tried to convert my collection to ePub format (coding is cp1250) ) could someone help me ?

The problem that appear in convert (is the same for all my books) :"AttributeError: 'NoneType' object has no attribute 'tag''"

here is the complete log from converting one book:
Quote:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Cerveny a cierny)

Convert book 1 of 1 (Cerveny a cierny)
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\\wlcik\\appdata\\local\\temp\\calibre_0 .6.29_tprdqh.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': u'cp1250',
'input_profile': <calibre.customize.profiles.InputProfile object at 0x04C0C8B0>,
'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.OutputProfile object at 0x04C0C9F0>,
'page_breaks_before': u'/',
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': True,
'print_formatted_paras': False,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\users\\wlcik\\appdata\\local\\temp\\calibre_0 .6.29_imtqte.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': False,
'tags': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: PDB Input running
on C:\Users\Wlcik\Documents\My Dropbox\Public\library\Jiri Kulhanek\Cerveny a cierny (104)\Cerveny a cierny.pdb
Detected ebook format as: PalmDOC with identity: TEXtREAd
Decompressing text...
Decompressing text section 1
Decompressing text section 2
Decompressing text section 3
Decompressing text section 4
Decompressing text section 5
Decompressing text section 6
Decompressing text section 7
Decompressing text section 8
Decompressing text section 9
Decompressing text section 10
Decompressing text section 11
Decompressing text section 12
Decompressing text section 13
Decompressing text section 14
Decompressing text section 15
Decompressing text section 16
Decompressing text section 17
Decompressing text section 18
Decompressing text section 19
Decompressing text section 20
Decompressing text section 21
Decompressing text section 22
Decompressing text section 23
Decompressing text section 24
Decompressing text section 25
Decompressing text section 26
Decompressing text section 27
Decompressing text section 28
Decompressing text section 29
Decompressing text section 30
Decompressing text section 31
Decompressing text section 32
Decompressing text section 33
Decompressing text section 34
Decompressing text section 35
Decompressing text section 36
Decompressing text section 37
Decompressing text section 38
Decompressing text section 39
Decompressing text section 40
Decompressing text section 41
Decompressing text section 42
Decompressing text section 43
Decompressing text section 44
Decompressing text section 45
Decompressing text section 46
Decompressing text section 47
Decompressing text section 48
Decompressing text section 49
Decompressing text section 50
Decompressing text section 51
Decompressing text section 52
Decompressing text section 53
Decompressing text section 54
Decompressing text section 55
Decompressing text section 56
Decompressing text section 57
Decompressing text section 58
Decompressing text section 59
Decompressing text section 60
Decompressing text section 61
Decompressing text section 62
Decompressing text section 63
Decompressing text section 64
Decompressing text section 65
Decompressing text section 66
Decompressing text section 67
Decompressing text section 68
Decompressing text section 69
Decompressing text section 70
Decompressing text section 71
Decompressing text section 72
Decompressing text section 73
Decompressing text section 74
Decompressing text section 75
Decompressing text section 76
Decompressing text section 77
Decompressing text section 78
Decompressing text section 79
Decompressing text section 80
Decompressing text section 81
Decompressing text section 82
Decompressing text section 83
Decompressing text section 84
Decompressing text section 85
Decompressing text section 86
Decompressing text section 87
Decompressing text section 88
Decompressing text section 89
Decompressing text section 90
Decompressing text section 91
Decompressing text section 92
Decompressing text section 93
Decompressing text section 94
Decompressing text section 95
Decompressing text section 96
Decompressing text section 97
Decompressing text section 98
Decompressing text section 99
Decompressing text section 100
Decompressing text section 101
Decompressing text section 102
Decompressing text section 103
Decompressing text section 104
Decompressing text section 105
Decompressing text section 106
Decompressing text section 107
Decompressing text section 108
Decompressing text section 109
Decompressing text section 110
Decompressing text section 111
Decompressing text section 112
Decompressing text section 113
Decompressing text section 114
Decompressing text section 115
Decompressing text section 116
Decompressing text section 117
Decompressing text section 118
Decompressing text section 119
Decompressing text section 120
Decompressing text section 121
Decompressing text section 122
Decompressing text section 123
Decompressing text section 124
Decompressing text section 125
Decompressing text section 126
Decompressing text section 127
Decompressing text section 128
Decompressing text section 129
Decompressing text section 130
Decompressing text section 131
Decompressing text section 132
Decompressing text section 133
Decompressing text section 134
Decompressing text section 135
Decompressing text section 136
Decompressing text section 137
Decompressing text section 138
Decompressing text section 139
Decompressing text section 140
Decompressing text section 141
Decompressing text section 142
Decompressing text section 143
Decompressing text section 144
Decompressing text section 145
Decompressing text section 146
Decompressing text section 147
Decompressing text section 148
Decompressing text section 149
Decompressing text section 150
Decompressing text section 151
Decompressing text section 152
Decompressing text section 153
Decompressing text section 154
Decompressing text section 155
Decompressing text section 156
Decompressing text section 157
Decompressing text section 158
Decompressing text section 159
Decompressing text section 160
Decompressing text section 161
Converting text to OEB...
Parsing all content...
Parsing index.html ...
Forcing index.html into XHTML namespace
Generating default TOC from spine...
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 EPUB Output...
Looking for large trees in index.html...
Found large tree #0
Splitting...
Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*[5]
Committed sub-tree #1 (63 KB)
Split tree still too large: 656 KB
Splitting...
Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*[4]
Split tree still too large: 443 KB
Splitting...
Split point: {http://www.w3.org/1999/xhtml}p /*/*[2]/*[3]
Committed sub-tree #2 (147 KB)
Split tree still too large: 296 KB
Splitting...
Python function terminated unexpectedly
'NoneType' object has no attribute 'tag' (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 843, in run
File "site-packages\calibre\ebooks\epub\output.py", line 162, in convert
File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 56, in __call__
File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 66, in split_item
File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 188, in __init__
File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 402, in split_to_size
File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 402, in split_to_size
File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 402, in split_to_size
File "site-packages\calibre\ebooks\oeb\transforms\split.py", line 384, in split_to_size
AttributeError: 'NoneType' object has no attribute 'tag'
cistehovado is offline   Reply With Quote
Old 05-09-2010, 08:42 AM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Try converting with the --single-line-paras option. If that doesn't work try the --print-formatted-paras option.

The issue is the entire book is being read as one single (or just a few large) paragraphs. The default input differentiates paragraphs based on a blank line between them. The above two options change how paragraphs are detected.
user_none is offline   Reply With Quote
Advert
Old 05-14-2010, 01:16 AM   #3
cistehovado
Member
cistehovado began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Dec 2009
Device: iphone
Hello, I found a workaround for solution, I just set the SPLIT FILES LARGER THAN 260KB from default (260KB) to 512KB, and it works. (I hope books are converted successfuly )
output : ePub
cistehovado is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre 7.2 problem Elevatorguy Calibre 9 09-17-2010 03:06 PM
Calibre problem, Please help! darleo Calibre 2 03-20-2010 12:07 PM
PRS-600 problem with calibre Nefertum Sony Reader 3 11-26-2009 09:00 AM
Help with Calibre problem judyhill Introduce Yourself 8 11-25-2009 11:51 AM
Calibré problem (may be XP problem) Hildebrandt Calibre 3 07-23-2009 02:04 PM


All times are GMT -4. The time now is 02:23 PM.


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