Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 07-06-2009, 08:27 PM   #76
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by mindwarp View Post
I continue to get Invalid PID Checksum.
Try using pid_checksum.py. Note that 0 vs O and 1 vs I are common errors, although in this case there is also the possibility that kindlepid returned the wrong PID (because it was given the wrong UDID).

Also, make sure you don't have Python 3.X which does not work.
wallcraft is offline   Reply With Quote
Old 07-06-2009, 09:16 PM   #77
mindwarp
Zealot
mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.
 
Posts: 139
Karma: 3414358
Join Date: Dec 2008
Device: Kindle Fire
Quote:
Originally Posted by wallcraft View Post
Try using pid_checksum.py. Note that 0 vs O and 1 vs I are common errors, although in this case there is also the possibility that kindlepid returned the wrong PID (because it was given the wrong UDID).

Also, make sure you don't have Python 3.X which does not work.
Thanks for the reply.

I've tried pid_checksum and it said Mobipocket PID is correct. There are no 0 or 1 in my PID so I'm clear there. I'm using python 2.6.2.

I'm beginning to think that the wrong PID must have been generated from my Ipod UDID, cause I'm running out of ideas. lol
mindwarp is offline   Reply With Quote
Advert
Old 07-06-2009, 10:02 PM   #78
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by mindwarp View Post
I'm beginning to think that the wrong PID must have been generated from my Ipod UDID, cause I'm running out of ideas.
I agree, because it is unlikely that a "random" PID-like string has a good checksum. Try generating the PID from the UDID again.
wallcraft is offline   Reply With Quote
Old 07-06-2009, 10:18 PM   #79
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by mindwarp View Post
Error: invalid PID checksum
This is confusing, because pid_checksum.py with EXACTLY the same command line (right?), i.e. with mobidedrm005.py replaced with pid_checksum.py, did not give a checksum error.
wallcraft is offline   Reply With Quote
Old 07-06-2009, 10:59 PM   #80
mindwarp
Zealot
mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.
 
Posts: 139
Karma: 3414358
Join Date: Dec 2008
Device: Kindle Fire
Quote:
Originally Posted by wallcraft View Post
This is confusing, because pid_checksum.py with EXACTLY the same command line (right?), i.e. with mobidedrm005.py replaced with pid_checksum.py, did not give a checksum error.
Right. I typed it up here wrong, but it has the exact same command line just replacing mobidedrm005.py with pid_checksum.py.

I tried seeing if I had another UDID anywhere or if it would change if I restored my Ipod, but it didn't. I really have no clue, because the checksum says it's correct.

I've tried different files and typed in different extensions (.azw and .prc) But no avail.

Thanks for the suggestions!
mindwarp is offline   Reply With Quote
Advert
Old 07-06-2009, 11:26 PM   #81
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by mindwarp View Post
But no avail.
Try the suggestion in post #4. This it isn't much but it is all I have left.
wallcraft is offline   Reply With Quote
Old 07-06-2009, 11:41 PM   #82
mindwarp
Zealot
mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.
 
Posts: 139
Karma: 3414358
Join Date: Dec 2008
Device: Kindle Fire
Quote:
Originally Posted by wallcraft View Post
Try the suggestion in post #4. This it isn't much but it is all I have left.
Thanks I did find something odd. I tried the sample PID given with pid_checksum and typed it in instead of my PID and it came out as correct.... and when I posted it with mobidedrm005.py it said invalid PID checksum instead of what it should have said (Error: no key found. maybe the PID is incorrect).

I don't know what that means, but I found that odd. Even if you don't have any more ideas, thanks so much for trying to help!
mindwarp is offline   Reply With Quote
Old 07-07-2009, 01:51 AM   #83
mindwarp
Zealot
mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.
 
Posts: 139
Karma: 3414358
Join Date: Dec 2008
Device: Kindle Fire
I finally got one to work! lol It seems that all the kindle books I was using came up as invalid file type when I used mobidedrm.py (when I used mobidedrm005.py it said invalid PID) I download quite a few free kindle ebooks and samples and tested them out. Some worked with mobidedrm.py but none worked with mobidedrm005.py.

I haven't figured out why only some will work, but none with the newer mobidedrm.

I did notice that if the sample was drmed then I couldn't undrm the full book, but if the sample wasn't drmed then I could undrm the full book. Not sure why that is though... lol

Thanks again, wallcraft!
mindwarp is offline   Reply With Quote
Old 07-07-2009, 10:21 AM   #84
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by mindwarp View Post
I finally got one to work! lol It seems that all the kindle books I was using came up as invalid file type when I used mobidedrm.py (when I used mobidedrm005.py it said invalid PID) I download quite a few free kindle ebooks and samples and tested them out. Some worked with mobidedrm.py but none worked with mobidedrm005.py.
You may have a corrupted version of v5, but I have suspected in other cases on the Mac that the "checksum" error is coming up when some other error is actually invoked. You seem to have confirmed this.

DRM-free AZW's should give a different error, but they don't need mobidedrm at all. I was not aware that any samples had DRM. Are the ebooks (samples or otherwise) that fail completely TOPAZ ebooks (file extension .tpz or .azw1)? This is an Amazon-specific format that no one outside Amazon knows how to read.

See kindledrm.py for a script to identify DRM-free AZW ebooks.
wallcraft is offline   Reply With Quote
Old 07-07-2009, 12:38 PM   #85
mindwarp
Zealot
mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.mindwarp ought to be getting tired of karma fortunes by now.
 
Posts: 139
Karma: 3414358
Join Date: Dec 2008
Device: Kindle Fire
Quote:
Originally Posted by wallcraft View Post
DRM-free AZW's should give a different error, but they don't need mobidedrm at all. I was not aware that any samples had DRM. Are the ebooks (samples or otherwise) that fail completely TOPAZ ebooks (file extension .tpz or .azw1)? This is an Amazon-specific format that no one outside Amazon knows how to read.

See kindledrm.py for a script to identify DRM-free AZW ebooks.
Hey! Yep, the books I was trying to convert that came up with checksum error were all Tpz. Both in Samples and the Full book. Seems I had a lot of this format and I wasn't aware. Paul was gracious enough to show me how to figure out what format it's in. I didn't know, because when you extract from an IPhone/Itouch the format is always .prc. No matter if it's azw, azw1 or tpz. Good for future knowledge too anyone that uses this device.

Thanks again
mindwarp is offline   Reply With Quote
Old 07-15-2009, 08:05 AM   #86
nohmi2
Pensively observing.
nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.
 
nohmi2's Avatar
 
Posts: 1,758
Karma: 12675456
Join Date: Jun 2008
Device: Varied.
Oh frabjous joy!!!

Downloaded two books from PanMcMillan.
Converted one with no trouble at all. Tried to convert the second one (same PID, same method) wrong PID.
Before clocking in here, had a look at our local e-newspaper and this is what greeted me:

Tsunami warning for east coast

is on a tsunami alert following an earthquake off New Zealand.

3 comments on this story

Twitter: Latest tsunami talk

All help with the MobiDeDRM would be appreciated.

Some days it doesn't pay to get up does it?

Cheers
nohmi2 is offline   Reply With Quote
Old 07-15-2009, 08:48 AM   #87
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,826
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by nohmi2 View Post
Downloaded two books from PanMcMillan.
Converted one with no trouble at all. Tried to convert the second one (same PID, same method) wrong PID.
Some PanMcMillan ebooks are DRM free. Check to see if it really does have DRM first?
pdurrant is offline   Reply With Quote
Old 07-15-2009, 06:52 PM   #88
nohmi2
Pensively observing.
nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.
 
nohmi2's Avatar
 
Posts: 1,758
Karma: 12675456
Join Date: Jun 2008
Device: Varied.
Quote:
Originally Posted by pdurrant View Post
Some PanMcMillan ebooks are DRM free. Check to see if it really does have DRM first?
Will have a look today.

Many thanks.
nohmi2 is offline   Reply With Quote
Old 07-16-2009, 12:24 AM   #89
nohmi2
Pensively observing.
nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.nohmi2 ought to be getting tired of karma fortunes by now.
 
nohmi2's Avatar
 
Posts: 1,758
Karma: 12675456
Join Date: Jun 2008
Device: Varied.
It was DRM free.

I really cannot understand their reasoning, but I will remember that fact when I buy from them again.

Many thanks.
nohmi2 is offline   Reply With Quote
Old 08-05-2009, 05:54 PM   #90
Dowland
Junior Member
Dowland began at the beginning.
 
Posts: 1
Karma: 28
Join Date: Aug 2009
Device: Cybook Gen 3
Exclamation Solution.

Here comes a lengthy post to summarize the problem and give an actual solution. Please don't hesitate to reproduce this elsewhere. And also, please don't bury this post in the thread, because then nobody will ever find it ... :-)
*

Background info. A MobiPocket PID is 10 characters: 8 characters are the actual key, and 2 characters are the checksum.

Now, before doing its deed, MobileDRM looks at the PID you gave: it controls whether the checksum and the key actually correspond. If they dont, then it gives the error message we all know ("Error: invalid PID checksum"). If they do, then it cuts away the last 2 characters of the PID, and keeps only the key for the remainder of its operation.

Problem. The issue, at least in mobiledrm005.py, is that it accidentally repeats this operation twice (probably whoever wrote this did an unwitting double copy-paste). So scenario 1: your PID is incorrect, and it gets rejected on the first check. And scenario 2: your PID is correct, it passes the first check, gets shortened to its key component, and then flunks the second check.

Solution. Remove the first block from the initialization the code
Quote:
Please contact the OP for this code, as we are not allowed to host Python code of this nature on MR. Thanks for your understanding.

Moderator
Outro. It may very well be that your PID is actually incorrect, and you should browse this thread for ways to find out.

Also: opening the book after buying it unnecessary (except if your vendor does some non-standard thing I've never heard about). If this seems like it works, than a possible explanation is that opening the book actually removes the DRM (and then running MobileDRM on it gives the appearance that it actually worked ...).

Finally: no, I've never seen (valid) MobiPocket PIDs with anything but uppercase alphanumerical characters...

Last edited by mtravellerh; 08-31-2009 at 03:12 AM.
Dowland is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"dx" is not a valid search keyword sushovande Feedback 6 08-15-2010 09:20 PM
PRS-600 "Internal content invalid. Formatting" 600 crash (is it dead ?) zelda_pinwheel Sony Reader 93 02-18-2010 05:27 PM
Classic "Invalid Update" shrktank Barnes & Noble NOOK 4 02-14-2010 06:58 PM
Error help: "Invalid input object: NoneType" MichaelGray ePub 1 02-14-2010 09:16 AM
Error message : "Invalid Format" " Do you want to format your internal memory" narbeauchamp Sony Reader 11 07-22-2009 12:39 PM


All times are GMT -4. The time now is 12:40 AM.


MobileRead.com is a privately owned, operated and funded community.