![]() |
#1 |
eBook enthusiast
![]() 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? |
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
Also, you did put your KindlePID into the BoB bookstore BEFORE you downloaded this file right? BOb |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
eBook enthusiast
![]() 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
Quote:
Mac OS X 10.4.11 Python 2.4.3 Yes, I did add my Kindle PID on BooksOnBoard before downloading the book. grey parrot-powerbook-g4-15:~/downloads greyparrot $ /users/greyparrot/ebooktools/kindlefix.py Natural-583.prc <myKindlePID> /users/greyparrot/ebooktools/kindlefix.py:61: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up if off1==0xFFFFFFFF or off1==0: 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) |
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
|
![]() |
![]() |
![]() |
#5 |
eBook enthusiast
![]() Posts: 49
Karma: 17
Join Date: Dec 2007
Location: Tampa, FL
Device: Kindle DX/Kindle 2/Sony PRS-505
|
No I wasn't but I just tried it with single quotes and got the same error message. I had a BOB account and added the KindlePID to it, I wonder if the fact that other PID's are listed on BOB that could cause a problem. BOB will only let me delete one pid in 24 hours and I have three listed so I opened a new account with only the kindle pid. Nothing changed I still get the same error message.
Last edited by greyparrot; 01-04-2009 at 07:26 AM. Reason: added info |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 739
Karma: 1018859
Join Date: Jun 2008
Location: Near Seattle
Device: kindle1, K3, K3G (thanks MR), iTouch, Kindle Touch
|
Try taking the - out of the name of the book
cheers |
![]() |
![]() |
![]() |
#7 | |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
From Paul Durrant in Simple guide to installing Python:
Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
eBook enthusiast
![]() 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
Quote:
wallcraft, I have Python 2.4.3, is a newer version available for Mac OS X Tiger. |
|
![]() |
![]() |
![]() |
#9 | ||
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
http://www.python.org/download/mac/ Although, I thought Deb ran this on Tiger with 2.4 and it worked. But, I'm not a python guru. You could also try ActivePython... which I think is just a single universal binary. http://www.activestate.com/activepython/ BOb |
|
![]() |
![]() |
![]() |
#11 |
eBook enthusiast
![]() 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 installed Python 2.6.1 and still have the same problem. I'm about to give up on this. BOB probably doesn't have anything that Amazon doesn't have and Amazon prices are lower. I'll keep watching this and other forums and some day I might find a solution.
|
![]() |
![]() |
![]() |
#12 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
I don't think it is possible for 2.6.1 to give this particular error. Perhaps /usr/bin/python is still pointing to the old version. I don't have a Mac, but (assuming it is like Linux) try in the Terminal window:
Code:
post content modified on Amazon's request |
![]() |
![]() |
![]() |
#13 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 281
Karma: 1301
Join Date: Jul 2008
Location: Upstate NY
Device: Nook GlowLight 3
|
I think its because you bought the book at books on board. The mobipocket server rejects kindle pids.
|
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
Ok... 1. Are you sure you used python 2.6? Type python --version at the command line and see what it returns. If 2.4 is in your path first that will be used. 2. You could try mobidedrm instead. BOb |
|
![]() |
![]() |
![]() |
#15 | |
eBook enthusiast
![]() Posts: 49
Karma: 17
Join Date: Dec 2007
Location: Tampa, FL
Device: Kindle DX/Kindle 2/Sony PRS-505
|
Quote:
1. Terminal returns Python 2.6.1 It's available at http://www.python.org/download/releases/2.6.1/ 2. I'm not interested in removing DRM. My reason for pursuing this was for the rare case when a book was not available on Amazon and was on BOB. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hacks kindlepid/kindlefix 0.2 | igorsk | Amazon Kindle | 162 | 01-30-2010 11:40 AM |
Kindlefix no longer working for library books! | NedScharpf | Amazon Kindle | 4 | 09-04-2009 09:54 AM |
How to make Igor's script work | sunshine6855 | Kindle Developer's Corner | 160 | 03-12-2009 09:54 AM |
KindlePID and KindleFIX on Kindle 2 | daffy4u | Amazon Kindle | 22 | 02-24-2009 03:11 PM |
My problem with kindlefix | taltman711 | Kindle Developer's Corner | 6 | 05-09-2008 09:36 AM |