I was attempting to convert FeedBook's Engadget 瘾科技 (
http://www.feedbooks.com/feed/108) in MOBI format into LRF with embedded fonts and yield the following error:
Code:
('UnicodeEncodeError', u"'ascii' codec can't encode characters in position 4-15: ordinal not in range(128)"):
Traceback:
Traceback (most recent call last):
File "parallel.py", line 760, in worker
File "parallel.py", line 729, in work
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\convert_from.py", line 167, in main
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\convert_from.py", line 137, in process_file
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\mobi\convert_from.py", line 28, in process_file
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\mobi\convert_from.py", line 17, in generate_html
File "C:\Program Files\calibre\library.zip\calibre\ebooks\mobi\reader.py", line 187, in extract_content
File "calibre\ebooks\BeautifulSoup.pyo", line 1432, in __init__
File "calibre\ebooks\BeautifulSoup.pyo", line 1055, in __init__
File "calibre\ebooks\BeautifulSoup.pyo", line 1094, in _feed
File "calibre\ebooks\sgmllib.pyo", line 99, in feed
File "calibre\ebooks\sgmllib.pyo", line 138, in goahead
File "calibre\ebooks\sgmllib.pyo", line 315, in parse_endtag
File "calibre\ebooks\sgmllib.pyo", line 353, in finish_endtag
UnicodeEncodeError: 'ascii' codec can't encode characters in position 4-15: ordinal not in range(128)
Log:
Next tried converting Feedbook's MOBI format of Damn Interesting from (
http://www.feedbooks.com/feed/213 )
And yield the following error.
Code:
('TypeError', u'access() argument 1 must be (encoded string without NULL bytes), not str'):
Traceback:
Traceback (most recent call last):
File "parallel.py", line 760, in worker
File "parallel.py", line 729, in work
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\convert_from.py", line 167, in main
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\convert_from.py", line 137, in process_file
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\mobi\convert_from.py", line 34, in process_file
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 1909, in process_file
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 273, in __init__
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 395, in add_file
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 509, in parse_file
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 723, in process_children
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 1761, in parse_tag
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 723, in process_children
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 1761, in parse_tag
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 723, in process_children
File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\convert_from.py", line 1477, in parse_tag
TypeError: access() argument 1 must be (encoded string without NULL bytes), not str
Log:
[INFO] __init__.pyo:644: Processing 'c:\\docume~1\\user\\locals~1\\temp\\calibrephvicdmobi2lrf\\Damn_Interesting_8-16.html'
[INFO] __init__.pyo:644: Parsing HTML...
[INFO] __init__.pyo:644: Written preprocessed HTML to c:\docume~1\user\locals~1\temp\html2lrf-verbose.html
[INFO] __init__.pyo:644: Converting to BBeB...
Am I doing something wrong?
I require MOBI because PDF and EPUB feedbooks don't display unicode properly on my PC or PRS.
Environment:
MS Windows XP SP2
Calibre 0.4.83