05-08-2009, 03:42 AM | #1 |
Member
Posts: 15
Karma: 10
Join Date: May 2009
Device: kindle
|
how to use python script with windows xp
I have a non-drm mobi ebook and I'm trying to run kindlefix.py and I keep getting the same error message "no module named prc. I've placed the script and ebook in same folder and ran the python script from the command prompt after I changed the directory to appropriate folder. I typed: kindlefix.py ebook.mobi kindlePID. Do I use the kindle serial# or the generated mobi PID from the kindlepid.py script? I used both yet still get the same error message. What am I doing wrong?
|
05-08-2009, 03:00 PM | #2 |
Bookaholic
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
I don't understand. If the book has no DRM then why the need for KindleFix?
|
Advert | |
|
05-08-2009, 04:59 PM | #3 | |
Member
Posts: 15
Karma: 10
Join Date: May 2009
Device: kindle
|
thanks for the insight
Quote:
I didn't realize that you could read non-azw files on the kindle without amazon converting it first. If you have the mobidedrm script then no need for kindlefix at all?? Just out of curiosity I tried the kindlefix with a DRM .prc file and still got the same error message. |
|
05-08-2009, 05:21 PM | #4 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
|
05-08-2009, 05:24 PM | #5 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Correct. The difference is that kindlefix leaves the DRM in place and mobidedrm removes it. It is therefore ironic that Amazon (which owns MobiPocket) objected to discussion of kindlefix but not to mobidedrm.
|
Advert | |
|
05-08-2009, 06:16 PM | #6 |
Resident Curmudgeon
Posts: 76,435
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
My guess is that Amazon makes more money per AZW eBook sold then per Mobipocket eBook. And so they'd want Kindle owners to have to purchase DRMed content from them directly so they can make more money.
One thing.. if you've installed Python 3.0, uninstall it and install the latest Python 2.6.x from http://www.python.org |
05-08-2009, 08:12 PM | #7 | |
Member
Posts: 15
Karma: 10
Join Date: May 2009
Device: kindle
|
still a bit confused with python script usage
Quote:
I copied the prc.py to the common directory and still can't get this thing to work. I took a mobi DRM book that I purchased that has a PID generated for the computer that I'm using. I took this file and typed the following: kindlefix.py mobiDRMbook.prc kindlePID ----- I get an error message saying its the wrong PID. The kindlePID that used was generated from kindlepid.py. What is the logic here? Can this kindlefix script convert a DRM mobi file to a kindle azw file? If so, don't I need to include somewhere in the command the mobiPID and the kindlePID? Or is the kindlefix script just for a non-DRM mobi file and you're adding DRM to it using the kindlePID. |
|
05-08-2009, 08:24 PM | #8 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
kindlefix only works on MOBIs from OverDrive (not from mobipocket.com), which typically means lending library MOBIs or some from Books on Board (they tell you if it is from Overdrive or Mobipocket). You then need to add the Kindle's PID your list at the provider's site, download the ebook, and then run kindlefix with the Kindle PID. The reason that mobipocket MOBIs don't work, is that they won't let you add the Kindle PID to your list of PIDs.
In contrast, mobidedrm works with any MOBI ebook and with any PID in that ebook. That is because it is circumventing the DRM, kindlefix just allows the DRM to work on the Kindle (hence you need the Kindle PID inside the MOBI). |
05-08-2009, 08:52 PM | #9 | |
Member
Posts: 15
Karma: 10
Join Date: May 2009
Device: kindle
|
thanks for the clarification
Quote:
Was the kindlefix script written before mobidedrm was developed? If not, then why would anyone want to use it? Is it an attempt to avoid "snooping" by amazon on all non-azw files being read on the kindle? |
|
05-09-2009, 12:23 AM | #10 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Just because you can get away with it doesn't necessarily make it the right thing to do. Dale |
|
05-09-2009, 12:31 AM | #11 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Yes. It also worked on all DRMed MOBI files until Amazon told MobiPocket to stop accepting Kindle PIDs. The other difference is that kindlefix is entirely legal in the US. It is legal to use mobidedrm for some purposes in the US, but the Dark Reverser could be prosecuted in the US for writing it and you have to dig around to find it. In contrast, kindlefix has a known author and is posted on a mainstream blog site. Amazon threw its weight around at MobileRead about kindlepid, but there was never any chance of them going to court with such a flimsy claim.
|
05-13-2009, 02:29 AM | #12 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jan 2009
Device: Kindle
|
I have MS Vista and I'm having problems with Command Prompt. All software has been downloaded and are in the correct folders. I can not get the prc's to convert to azw's. I think it how I am typing the code into Command Prompt. Any tips? Thanks for the help.
I typing the following: C:\Users\J*****>kindlefix.py HuckFinn.prc 1M***** |
01-08-2011, 09:22 AM | #13 |
Junior Member
Posts: 8
Karma: 10
Join Date: Oct 2009
Device: Kindle
|
THANK YOU SO MUCH!!!
Don't know why I didn't assume the most obvious - the error message is correct, it's looking for a module named prc.py. I just assumed the import prc line had something to do with the prc file (the library book had a prc extension). I had been using this fix for a while, then rebuilt a laptop and recopied the files. Somehow I must have neglected this file - or I think it was in the Python folder in my original set-up and found by the path. I probably only moved kindlefix.py so my new set-up didn't have prc.py anywhere. Anyhow, thanks again. Works like a charm (as it did before!) pp |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindlestrip Python script and AppleScript wrapper | pdurrant | Kindle Formats | 137 | 08-15-2017 02:16 AM |
Import ebook conversion in python script | erollisi | Calibre | 1 | 08-19-2010 10:43 PM |
How do I get a shortcut for a Python script onto the taskbar in W7? | Sydney's Mom | Workshop | 6 | 03-28-2010 09:11 PM |
Nedd a little help with a python script | gandor62 | Calibre | 1 | 08-07-2008 10:59 PM |
Python script to create collections | gwynevans | Sony Reader Dev Corner | 2 | 03-13-2008 01:29 PM |