08-16-2008, 03:39 AM | #1 |
Addict
Posts: 234
Karma: 6720
Join Date: Aug 2008
Device: SONY PRS505
|
Conversion from Mobi to LRF error
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 Last edited by jessie102; 08-16-2008 at 12:58 PM. Reason: added "and EPUB" |
08-16-2008, 04:57 AM | #2 |
Manic Do Fuse
Posts: 2,312
Karma: 3325462
Join Date: Oct 2006
Device: Sony 500, 505, 350, Kindle 3, DXG, nook, Irex DR800SG, iPad
|
I got the same error with MOBI format of Damn Interesting but then I tried the epub version and Calibre converted it with no problems.
|
Advert | |
|
08-16-2008, 01:00 PM | #3 |
creator of calibre
Posts: 44,531
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm shouldn't be happening, open a ticket and I'll look into it when I get time.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Conversion error [PDF >> MOBI] | OMEN | Calibre | 3 | 09-27-2010 01:02 PM |
How can I cure this error in mobi to epub conversion? | Patricia1066 | Calibre | 1 | 03-17-2010 07:56 AM |
MOBI to LRF: Conversion troubles with Calibre | alaouet | Calibre | 11 | 02-10-2010 07:27 AM |
Conversion Error lrf -> mobi/epub (Calibre 0.6.33) | Joerg_Mosthaf | Calibre | 2 | 01-13-2010 08:40 AM |
TOC no longer works after Mobi -> LRF conversion... | rroberrto | Calibre | 3 | 07-07-2009 02:22 AM |