View Single Post
Old 10-31-2008, 11:29 PM   #43
hhardegen
Junior Member
hhardegen began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2008
Device: Sony
I'm back now.

Have upgraded Calibre to latest 4.101 version
Have added the patch lines to the MobiDeDRM.py file to take the 0.02 one I was using to 0.04

The decrytion says it works in the cmd box

When I try to convert the supposedly decrypted file using Calibre, I get a long error message. Hope you don't mind me copying it all here but maybe it's important:

Job: **Convert book: LordoftheSilent(2)** **tuple**: ('UnicodeEncodeError', u"'ascii' codec can't encode characters in position 4-6: ordinal not in range(128)") **Traceback**: Traceback (most recent call last): File "parallel.py", line 928, in worker File "parallel.py", line 886, in work File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\c onvert_from.py", line 192, in main File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\c onvert_from.py", line 162, in process_file File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\txt\c onvert_from.py", line 96, in process_file File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\ convert_from.py", line 1918, 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 387, in add_file File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\ convert_from.py", line 330, in preprocess 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-6: ordinal not in range(128) **Log**: Converting text to HTML... MARKDOWN-CRITICAL: "We've got a problem header!" Processing u'index.html' Parsing HTML... ('UnicodeEncodeError', u"'ascii' codec can't encode characters in position 4-6: ordinal not in range(128)") Traceback (most recent call last): File "parallel.py", line 928, in worker File "parallel.py", line 886, in work File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\c onvert_from.py", line 192, in main File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\any\c onvert_from.py", line 162, in process_file File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\txt\c onvert_from.py", line 96, in process_file File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\ convert_from.py", line 1918, 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 387, in add_file File "C:\Program Files\calibre\library.zip\calibre\ebooks\lrf\html\ convert_from.py", line 330, in preprocess 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-6: ordinal not in range(128)

I'm probably missing something obvious. Sorry.

Helen
hhardegen is offline   Reply With Quote