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-01-2010, 06:25 AM   #1
seagull
Addict
seagull considers 'yay' to be a thoroughly cromulent word.seagull considers 'yay' to be a thoroughly cromulent word.seagull considers 'yay' to be a thoroughly cromulent word.seagull considers 'yay' to be a thoroughly cromulent word.seagull considers 'yay' to be a thoroughly cromulent word.seagull considers 'yay' to be a thoroughly cromulent word.seagull considers 'yay' to be a thoroughly cromulent word.seagull considers 'yay' to be a thoroughly cromulent word.seagull considers 'yay' to be a thoroughly cromulent word.seagull considers 'yay' to be a thoroughly cromulent word.seagull considers 'yay' to be a thoroughly cromulent word.
 
Posts: 247
Karma: 89950
Join Date: Dec 2009
Device: Amazon Kindle 2
Error parsing attribute name?

I'm trying to convert an .epub file to .mobi and get this error:

Quote:
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Unseen Academicals)

Convert book 1 of 1 (Unseen Academicals)
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:\\docume~1\\calvin\\locals~1\\temp\\calibre_0.6 .31_dl2vew.jpeg',
'debug_pipeline': None,
'disable_font_rescaling': False,
'dont_compress': 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>)' ,
'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 0x02852D30>,
'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_inline_navbars': True,
'no_inline_toc': True,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0x0285A050>,
'page_breaks_before': u'/',
'prefer_author_sort': True,
'prefer_metadata_cover': False,
'preprocess_html': False,
'pretty_print': False,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'c:\\docume~1\\calvin\\locals~1\\temp\\calibre_0.6 .31_ngrb6x.opf',
'remove_first_image': True,
'remove_footer': False,
'remove_header': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'rescale_images': False,
'series': None,
'series_index': None,
'tags': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Documents and Settings\Calvin\Calibre Library\Pratchett_ Terry\Unseen Academicals (5)\Unseen Academicals - Pratchett_ Terry.epub
Found HTML cover OEBPS/unseenacademicals_cov.html
Parsing all content...
Parsing OEBPS/footnote13.html ...
Parsing OEBPS/footnote4.html ...
Parsing OEBPS/footnote6.html ...
Parsing OEBPS/footnote8.html ...
Parsing OEBPS/footnote15.html ...
Parsing OEBPS/footnote27.html ...
Parsing OEBPS/unseenacademicals_con.html ...
Parsing OEBPS/footnote11.html ...
Parsing OEBPS/unseenacademicals.css ...
Property: Invalid value for "CSS Level 2.1" property: sup [1221:2: vertical-align]
Property: Invalid value for "CSS Level 2.1" property: sup [1985:2: vertical-align]
Parsing OEBPS/unseenacademicals_cov.html ...
Parsing OEBPS/unseenacademicals_adc01.html ...
Parsing OEBPS/unseenacademicals_tp01.html ...
Parsing OEBPS/unseenacademicals_ded01.html ...
Parsing OEBPS/unseenacademicals_ch02.html ...
Initial parse failed:
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\base.py", line 803, in first_pass
File "lxml.etree.pyx", line 2538, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48266)
File "parser.pxi", line 1536, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71653)
File "parser.pxi", line 1408, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70449)
File "parser.pxi", line 898, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:67144)
File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63820)
File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64741)
File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64084)
XMLSyntaxError: Unescaped '<' not allowed in attributes values, line 1196, column 41

Parsing file 'OEBPS/unseenacademicals_ch02.html' as HTML
Forcing OEBPS/unseenacademicals_ch02.html into XHTML namespace
Stripping comments and meta tags from OEBPS/unseenacademicals_ch02.html
Failed to parse content in OEBPS/unseenacademicals_ch02.html
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\reader.py", line 159, in _manifest_prune_invalid
File "site-packages\calibre\ebooks\oeb\base.py", line 1014, in fget
File "site-packages\calibre\ebooks\oeb\base.py", line 871, in _parse_xhtml
File "lxml.etree.pyx", line 2538, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48266)
File "parser.pxi", line 1536, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71653)
File "parser.pxi", line 1408, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70449)
File "parser.pxi", line 898, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:67144)
File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63820)
File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64741)
File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64084)
XMLSyntaxError: error parsing attribute name, line 1253, column 29

Parsing OEBPS/footnote12.html ...
Parsing OEBPS/unseenacademicals_ch03.html ...
Parsing OEBPS/unseenacademicals_ch04.html ...
Parsing OEBPS/unseenacademicals_ata01.html ...
Parsing OEBPS/footnote14.html ...
Parsing OEBPS/unseenacademicals_cre01.html ...
Parsing OEBPS/unseenacademicals_cop01.html ...
Parsing OEBPS/unseenacademicals_atp01.html ...
Parsing OEBPS/footnote17.html ...
Parsing OEBPS/footnote19.html ...
Parsing OEBPS/footnote20.html ...
Parsing OEBPS/footnote22.html ...
Parsing OEBPS/footnote24.html ...
Parsing OEBPS/footnote26.html ...
Parsing OEBPS/footnote3.html ...
Parsing OEBPS/footnote5.html ...
Parsing OEBPS/footnote7.html ...
Parsing OEBPS/footnote9.html ...
Parsing OEBPS/footnote10.html ...
Parsing OEBPS/unseenacademicals_ch01.html ...
Parsing OEBPS/footnote1.html ...
Parsing OEBPS/footnote16.html ...
Parsing OEBPS/footnote18.html ...
Parsing OEBPS/footnote2.html ...
Parsing OEBPS/footnote21.html ...
Parsing OEBPS/footnote23.html ...
Parsing OEBPS/footnote25.html ...
Referenced file 'OEBPS/unseenacademicals_ch02.html' not in manifest
Parsing OEBPS/unseenacademicals_ch02.html ...
Initial parse failed:
Traceback (most recent call last):
File "site-packages\calibre\ebooks\oeb\base.py", line 803, in first_pass
File "lxml.etree.pyx", line 2538, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48266)
File "parser.pxi", line 1536, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71653)
File "parser.pxi", line 1408, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70449)
File "parser.pxi", line 898, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:67144)
File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63820)
File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64741)
File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64084)
XMLSyntaxError: Unescaped '<' not allowed in attributes values, line 1196, column 41

Parsing file 'OEBPS/unseenacademicals_ch02.html' as HTML
Forcing OEBPS/unseenacademicals_ch02.html into XHTML namespace
Stripping comments and meta tags from OEBPS/unseenacademicals_ch02.html
Python function terminated unexpectedly
error parsing attribute name, line 1253, column 29 (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 745, in run
File "site-packages\calibre\ebooks\conversion\plumber.py", line 866, in create_oebbook
File "site-packages\calibre\ebooks\oeb\reader.py", line 72, in __call__
File "site-packages\calibre\ebooks\oeb\reader.py", line 588, in _all_from_opf
File "site-packages\calibre\ebooks\oeb\reader.py", line 243, in _manifest_from_opf
File "site-packages\calibre\ebooks\oeb\reader.py", line 176, in _manifest_add_missing
File "site-packages\calibre\ebooks\oeb\base.py", line 1014, in fget
File "site-packages\calibre\ebooks\oeb\base.py", line 871, in _parse_xhtml
File "lxml.etree.pyx", line 2538, in lxml.etree.fromstring (src/lxml/lxml.etree.c:48266)
File "parser.pxi", line 1536, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71653)
File "parser.pxi", line 1408, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70449)
File "parser.pxi", line 898, in lxml.etree._BaseParser._parseUnicodeDoc (src/lxml/lxml.etree.c:67144)
File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63820)
File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64741)
File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64084)
lxml.etree.XMLSyntaxError: error parsing attribute name, line 1253, column 29
Any ideas?
seagull is offline   Reply With Quote
Old 01-01-2010, 11:30 AM   #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: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The EPUB file has invalid markup, specifically a > character inside an attribure value. This breaks parsing. You will have to correct that error manually before converting.
kovidgoyal is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
attribute "scheme" from namespace error in epubcheck 1.0.5 thunderune ePub 15 06-30-2011 10:57 AM
Attribute error? jusmee Calibre 2 12-15-2009 08:22 PM
tag <br /> causes epubeck error: attribute clear not allowed georg3200 ePub 21 11-19-2009 08:50 PM
'BookList' object has no attribute 'add_books' Error message nomedia Calibre 4 09-29-2008 01:50 AM
Calibre Author/Title parsing sglinert Calibre 1 05-23-2008 10:18 AM


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


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