![]() |
#91 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#92 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#93 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#94 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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!
|
![]() |
![]() |
![]() |
#95 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
BOb |
|
![]() |
![]() |
Advert | |
|
![]() |
#96 |
Zealot
![]() ![]() ![]() ![]() Posts: 106
Karma: 348
Join Date: Dec 2006
|
|
![]() |
![]() |
![]() |
#97 |
Junior Member
![]() 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 |
![]() |
![]() |
![]() |
#98 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
|
![]() |
![]() |
![]() |
#99 |
Kindlephilia
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#100 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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'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 |
![]() |
![]() |
![]() |
#101 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#102 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#103 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,955
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#104 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#105 | |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
conversion, drm, formatting, mobipocket |
|
![]() |
||||
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 |