View Single Post
Old 01-03-2009, 12:41 PM   #1
greyparrot
eBook enthusiast
greyparrot began at the beginning.
 
greyparrot's Avatar
 
Posts: 49
Karma: 17
Join Date: Dec 2007
Location: Tampa, FL
Device: Kindle DX/Kindle 2/Sony PRS-505
I have a problem with Igor's kindlefix.py

I'm trying to get Igor's script working. I have followed 'Wiki Visual Kindle Guide' to the letter and have kindlepid working and have my Kindle PID, but I cannot get kindlefix working. I downloaded 'Natural-583.prc' from
booksonboard.com in (OD) format and ran kindlefix but get this message.

The Kindleizer v0.1. Copyright (c) 2007 Igor Skochinsky
Encryption: 2
Mobi publication type: 2
Mobi format version: 4
Traceback (most recent call last):
File "/users/greyparrot/ebooktools/kindlefix.py", line 157, in ?
sys.exit(main(fname, sys.argv[2]))
File "/users/greyparrot/ebooktools/kindlefix.py", line 134, in main
new_rec0 = find_key(rec0, pid)
File "/users/greyparrot/ebooktools/kindlefix.py", line 68, in find_key
temp_key = PC1(keyvec1, pid.ljust(16,'\0'), False)
TypeError: ljust() takes exactly 1 argument (2 given)

What is the problem?
greyparrot is offline   Reply With Quote