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 06-25-2008, 08:00 PM   #91
raymino
Junior Member
raymino began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2008
Device: Nokia 770
Thanks JSWolf,

I do not run the Python command. It's just included in the screenshot in response to pilotbob's question. I don't think mobidedrm even runs fron the Python prompt. "not recognized".

I have looked at mobidedrm.py in both Notepad and Python Editor, and nothing jumps out as being wrong. Of course I know nothing of Python coding.

As for trying it without the quotes, I've done that many many times with the same result. I guess now I'll take a closer look at the downloaded text file and compare it to the mobidedrm.py file.

By the way, should I be using CMD or COMMAND from XP's Run?

Thanks,
Ray
raymino is offline   Reply With Quote
Old 06-25-2008, 08:02 PM   #92
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
CMD is the Run command to use to bring up the command prompt.
JSWolf is offline   Reply With Quote
Advert
Old 06-25-2008, 10:38 PM   #93
raymino
Junior Member
raymino began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2008
Device: Nokia 770
Thank you to wallcraft, JSWolf, pilotbob and bwaldron,

I was able to find version 3.0 of mobidedrm, but when running it from the command prompt, I still got the same disppointing results.

However when using "run" from within the Python Editor, and filling in the arguments in the second box, I finally got my dedrm'd file.

Conclusion: There's something wrong with my command prompt on my computer.

Anyway, I'm very grateful for all the help I got here.

Ray
raymino is offline   Reply With Quote
Old 06-25-2008, 10:39 PM   #94
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
At least it now works. Well done!
JSWolf is offline   Reply With Quote
Old 06-25-2008, 11:21 PM   #95
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by raymino View Post
Conclusion: There's something wrong with my command prompt on my computer.
Did you actually install python? It sounds like the .py extension is not registered with python on your machine. When you browse the folder with the .py files in windows explorer does it list the file as python script or does it just say .py?

BOb
pilotbob is offline   Reply With Quote
Advert
Old 06-26-2008, 04:58 AM   #96
splat
Zealot
splat has a complete set of Star Wars action figures.splat has a complete set of Star Wars action figures.splat has a complete set of Star Wars action figures.splat has a complete set of Star Wars action figures.
 
Posts: 106
Karma: 348
Join Date: Dec 2006
Quote:
Originally Posted by raymino View Post
I was able to find version 3.0 of mobidedrm, but when running it from the command prompt, I still got the same disppointing results.
3.0! was this a typo or do I have to go searching for a new version again?
splat is offline   Reply With Quote
Old 06-26-2008, 09:48 AM   #97
raymino
Junior Member
raymino began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2008
Device: Nokia 770
Hi pilotbob,

Yes, I have python installed. When I browse the folder, the file type for mobidedrm.py is listed as "Python File". It has the same icon as the Python applications, but their type is listed as "Application".

Ray
raymino is offline   Reply With Quote
Old 06-26-2008, 10:06 AM   #98
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 splat View Post
3.0! was this a typo or do I have to go searching for a new version again?
There is a fix to version 0.2 in post #76 of this thread.
wallcraft is offline   Reply With Quote
Old 06-26-2008, 10:45 AM   #99
TallMomof2
Kindlephilia
TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.
 
TallMomof2's Avatar
 
Posts: 2,017
Karma: 1139255
Join Date: Nov 2007
Location: Snowpacolypse 2010
Device: Too many to count
I had to add Python to my Path command in order to run the scripts from the command prompt. When I installed Python it was not automatically added to the the Path command.
TallMomof2 is offline   Reply With Quote
Old 07-07-2008, 12:19 PM   #100
SeaWolf
Connoisseur
SeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileRead
 
SeaWolf's Avatar
 
Posts: 63
Karma: 65091
Join Date: Jul 2008
Location: Sydney, Australia
Device: Kindle Paperwhite WiFi
After a bit of fiddling around, I've been trying to get mobidedrm to work. I've taken the .02 script and made the tweaks described in post #76, but when I go to run it I hit a brick wall.
Code:
./MobiDeDRM.py:49: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
  crc = (~binascii.crc32(s,-1))&0xFFFFFFFF
MobiDeDrm v0.02. Copyright (c) 2008 The Dark Reverser
Traceback (most recent call last):
  File "./MobiDeDRM.py", line 178, in ?
    file(outfile, 'wb').write(DrmStripper(data_file, pid).getResult())
  File "./MobiDeDRM.py", line 146, in __init__
    found_key = self.parseDRM(sect[drm_ptr:drm_ptr+drm_size], drm_count, pid)
  File "./MobiDeDRM.py", line 103, in parseDRM
    pid = pid.ljust(16,'\0')
TypeError: ljust() takes exactly 1 argument (2 given)
I don't know Python at all so I'm hoping someone here with a better idea than me can explain why the seemingly totally broken line 103 works for everyone else, but not for me. From the error it seems like a fundamental, fatal flaw in the code. Yet clearly that can't be the case since it's working for everyone else...

I'm running
Code:
Python 2.3.5 (#1, Mar 20 2005, 20:38:20) 
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin
Anyone have any ideas?
SeaWolf is offline   Reply With Quote
Old 07-07-2008, 05:58 PM   #101
IceHand
Linux User
IceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavensIceHand is a rising star in the heavens
 
IceHand's Avatar
 
Posts: 323
Karma: 13682
Join Date: Aug 2007
Location: Germany
Device: Kindle 3
I think you need to have at least Python version 2.4 to get it running. Try upgrading it.
IceHand is offline   Reply With Quote
Old 07-11-2008, 06:04 AM   #102
SeaWolf
Connoisseur
SeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileReadSeaWolf has read every ebook posted at MobileRead
 
SeaWolf's Avatar
 
Posts: 63
Karma: 65091
Join Date: Jul 2008
Location: Sydney, Australia
Device: Kindle Paperwhite WiFi
I copied the files across to my Leopard machine, which has Python 2.5.1 on it and tried again. No problems at all this time, worked flawlessly.
Thanks for your help.
SeaWolf is offline   Reply With Quote
Old 07-18-2008, 02:50 AM   #103
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,955
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by SeaWolf View Post
I copied the files across to my Leopard machine, which has Python 2.5.1 on it and tried again. No problems at all this time, worked flawlessly.
If you're on Mac OS X, you might be interested in an Applescript wrapper I have for the decoder. I think it's OK to attach here, as without the MobiDeDRM.py script it can do nothing.

Once you copy the MobiDeDRM.py script into the package Resources folder, you can drag & drop files and/or folders onto the script and they'll all get decoded, you just need to enter your Mobipocket ID once. (& if you edit the AppleScript to include your code, not even that.)

Paul

Edited script to remove my Mobipocket ID, as that was causing confusion. Previous file had 15 downloads.

Edited script again to add quotes to PID on command line, as PIDs with $ in them cause problems on unix command lines.

Edited script again to add single quotes to PID on command line, as PIDs with $ in them cause problems on unix command lines. Also added in error reporting dialog if the python script returns text with "error" in it. Also added instructions for new fixes for 0.02 script to the readme.

Moved to own thread.

Last edited by pdurrant; 02-09-2010 at 05:48 AM. Reason: Removed file
pdurrant is offline   Reply With Quote
Old 07-23-2008, 10:44 AM   #104
garygibsonsf
Addict
garygibsonsf ought to be getting tired of karma fortunes by now.garygibsonsf ought to be getting tired of karma fortunes by now.garygibsonsf ought to be getting tired of karma fortunes by now.garygibsonsf ought to be getting tired of karma fortunes by now.garygibsonsf ought to be getting tired of karma fortunes by now.garygibsonsf ought to be getting tired of karma fortunes by now.garygibsonsf ought to be getting tired of karma fortunes by now.garygibsonsf ought to be getting tired of karma fortunes by now.garygibsonsf ought to be getting tired of karma fortunes by now.garygibsonsf ought to be getting tired of karma fortunes by now.garygibsonsf ought to be getting tired of karma fortunes by now.
 
Posts: 321
Karma: 432192
Join Date: Dec 2007
Location: Glasgow, Scotland
Device: Amazon Kindle Paperwhite
PDurrant - sorry if this is a terribly newbie question ... but where would I find a Mobipocket ID, if I had a mobipocket file I wished to run the script on, on my mac?

I should add that when I first click on the script you put up there, it asks me to navigate to a folder with a .prc file in it: I do that, select a file and up pops a window with some letters and numbers I assume are the associated mobipocket id. The mobidedrm v3 doesn't work at all, but the v2 does; however, the resultant file is zero k in size, so something's not quite right (I did rename the file to mobidedrm.py precisely inside the resources folder, yes).

I have MacPython 2.5 on my mac, which is a ppc. I note now I'm having similar problems to Seawolf - I recognised the

'./MobiDeDRM.py:49: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
crc ='

bit from the error message I keep getting when I run the decoder.

Last edited by garygibsonsf; 07-23-2008 at 11:25 AM. Reason: extra details
garygibsonsf is offline   Reply With Quote
Old 07-23-2008, 11:30 AM   #105
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 garygibsonsf View Post
where would I find a Mobipocket ID, if I had a mobipocket file I wished to run the script on, on my mac?
The site where you bought the MOBI file will have the PID, typically in your account info. It is typically also displayable on any device running MobiPocket Reader. See Using the Mobipocket Reader at Fictionwise for example. The PID of each device is different, and any MOBI file can have up to 4 PIDs associated with it.
wallcraft is offline   Reply With Quote
Reply

Tags
conversion, drm, formatting, mobipocket


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Epub/Mobipocket creation tool: Jutoh Julian Smart ePub 78 03-28-2014 07:28 AM
eReader Decoder Tool wallcraft Workshop 177 09-27-2009 08:46 PM
Secure Mobipocket Decoder ebookfab Kindle Formats 3 12-09-2008 08:50 PM
Secure Mobipocket Decoder v0.3 Aenea Kindle Formats 74 07-10-2008 09:57 AM
Secure Mobipocket Decoder is no more... Aenea Kindle Formats 26 04-12-2008 09:53 AM


All times are GMT -4. The time now is 09:41 AM.


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