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-22-2008, 08:33 AM   #76
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: 71,967
Karma: 307500000
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
It's possible to patch the 0.02 script to make it work with all the files that work with 0.01. Try the following changes:

Add two lines before line 63 (while True: )

if size <= 0:
return result


Comment out line 72 (while flags: ) and remove one indent tab from each of the following three lines
(if flags & 1:
num += getSizeOfTrailingDataEntry(ptr, size - num)
flags >>= 1)

And that should do it. It's worked on all my DRMed files - around 50 or so, some of which wouldn't work with 0.01 and some wouldn't work with 0.02.

Paul

Quote:
Originally Posted by IceHand View Post
There's a bug in v.0.02 of MobiDeDrm that will cause it to fail on some files. Try version 0.01.
pdurrant is offline   Reply With Quote
Old 06-22-2008, 10:07 AM   #77
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
Thank you, Paul! It worked with all of my 49 DRMed files – no switching back and forth between version 0.01 and 0.02 anymore.
IceHand is offline   Reply With Quote
Advert
Old 06-24-2008, 03:05 PM   #78
bwaldron
Wizard
bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.
 
bwaldron's Avatar
 
Posts: 1,229
Karma: 543210
Join Date: Feb 2008
Location: Gatlinburg, Tennessee
Device: Kindles: Paperwhite Signature Ed., Oasis 2, Voyage
Quote:
Originally Posted by IceHand View Post
Thank you, Paul! It worked with all of my 49 DRMed files – no switching back and forth between version 0.01 and 0.02 anymore.
Yes, thanks indeed!
bwaldron is offline   Reply With Quote
Old 06-24-2008, 08:28 PM   #79
raymino
Junior Member
raymino began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2008
Device: Nokia 770
I’ve had success with Mobidedrm before, now all I’m getting is …

MobiDeDrm v0.02. Copyright (c) 2008 The Dark Reverser
Removes protection from Mobipocket books
Usage mobidedrm infile.mobi outfile.mobi PID

The result is the same whether I just type "mobidedrm", or "mobidedrm" with input file name, both file names, or the complete statement with both file names and my PID.

I am in the python25 folder and my DRM'd book is in that folder.

Any help would be appreciated. Thanks.

Ray
raymino is offline   Reply With Quote
Old 06-24-2008, 10:38 PM   #80
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,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by raymino View Post
I’ve had success with Mobidedrm before, now all I’m getting is …

MobiDeDrm v0.02. Copyright (c) 2008 The Dark Reverser
Removes protection from Mobipocket books
Usage mobidedrm infile.mobi outfile.mobi PID

The result is the same whether I just type "mobidedrm", or "mobidedrm" with input file name, both file names, or the complete statement with both file names and my PID.
This should only happen if there are fewer than 3 arguments after mobidedrm. For example, mobidedrm A B C should give a different error (no such file or directory A).
wallcraft is offline   Reply With Quote
Advert
Old 06-24-2008, 11:41 PM   #81
raymino
Junior Member
raymino began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2008
Device: Nokia 770
Thanks wallcraft,

Yeah, thats right. I get the same message whether I put in 0, 1, 2 or all three arguments.

I use CMD from XP Run. I cd\python25
then I get the prompt c:\python25>
then i type mobidedrm triumph.mobi mytri.mobi BV38BEF$ND

I always get the same message.

When it worked before, it worked on some mobipocket books I downloaded 3 years ago. This is happening with one I downloaded recently. The old ones don't even work anymore.

I uninstalled and reinstalled python 2.5. When I use the python editor and choose "Run", with debugging, it seems to hang on the first line where it says "import sys,struct,binascii". I don't know where this stuff is to import from.

Ray
raymino is offline   Reply With Quote
Old 06-24-2008, 11:45 PM   #82
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: 75,392
Karma: 133807966
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
With Python 2.5 installed, I don't need to go to the Python directory. I just have a directory that has the Python programs there and use the command (most of the time)...

Code:
mobidedrm.py DRMladenebook.prc nonDRMladenebook.prc PID
and it works. If it doesn't work, it means I need to use verison 0.01. But with the new fix, I might not need 0.01 any longer.

Last edited by JSWolf; 12-24-2008 at 02:46 AM.
JSWolf is online now   Reply With Quote
Old 06-24-2008, 11:51 PM   #83
raymino
Junior Member
raymino began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2008
Device: Nokia 770
Thanks JSWolf,

I noticed you began you statement with "mobidedrm.py" instead of just "mobidedrm". I think I've tried that, but will try again. I just tried it and same result.

Do I have to have something running in the background? Something that should be in my startup folder?

Ray
raymino is offline   Reply With Quote
Old 06-25-2008, 12:32 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,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by raymino View Post
Yeah, thats right. I get the same message whether I put in 0, 1, 2 or all three arguments.
Try EXACTLY mobidedrm A B C (arguments are "A" "B" and "C") this should not give you the usage message but instead (something like) A not found. If it does give the same usage message, then something very strange is happening. The other thing to try is:

Code:
.\mobidedrm.py "triumph.mobi" "mytri.mobi" "BV38BEF$ND"
The ".\" forces windows to use the copy of mobidedrm.py in the current directory and the quotes should ensure that the command sees exactly the expected arguments.
wallcraft is offline   Reply With Quote
Old 06-25-2008, 08:04 AM   #85
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: 75,392
Karma: 133807966
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I have nothing special running in the background. All I have is Python 2.5 installed on Windows XP Pro.
JSWolf is online now   Reply With Quote
Old 06-25-2008, 11:21 AM   #86
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
Thanks JSWolf,

I noticed you began you statement with "mobidedrm.py" instead of just "mobidedrm". I think I've tried that, but will try again. I just tried it and same result.

Do I have to have something running in the background? Something that should be in my startup folder?

Ray
What happens if you just type python in your command window?

BOb
pilotbob is offline   Reply With Quote
Old 06-25-2008, 02:25 PM   #87
bwaldron
Wizard
bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.
 
bwaldron's Avatar
 
Posts: 1,229
Karma: 543210
Join Date: Feb 2008
Location: Gatlinburg, Tennessee
Device: Kindles: Paperwhite Signature Ed., Oasis 2, Voyage
Quote:
Originally Posted by raymino View Post
I noticed you began you statement with "mobidedrm.py" instead of just "mobidedrm". I think I've tried that, but will try again. I just tried it and same result.

Do I have to have something running in the background? Something that should be in my startup folder?
Installing Python on your system should add it to your path. This allows you to execute mobidedrm.py from anywhere.

Depending upon which version of Python you installed, it may have modified your system PATHEXT environment variable to include .py . This allows you to run .py files without specifying the extension; i.e., run the script as just "mobidedrm." You can change this manually via Control Panel if it is important to you to be able to drop the .py.

Last edited by bwaldron; 06-25-2008 at 06:16 PM.
bwaldron is offline   Reply With Quote
Old 06-25-2008, 06:00 PM   #88
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: 75,392
Karma: 133807966
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I run Python here and have to add the .py to the command. Other then that, it works fine.
JSWolf is online now   Reply With Quote
Old 06-25-2008, 07:42 PM   #89
raymino
Junior Member
raymino began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2008
Device: Nokia 770
Thanks to you all for helping me with this. The attached Word file has a screen shot of my commands and the results.

I'm beginning to think that my method for creating mobidedrm.py is faulty. I open the text file in Notepad, I select all and copy. Then I open the Python editor, create new script file, paste, then save to Python25 folder where the drm'd book and the python program files reside.

I think I will try to manually copy the text file with the script, the paste it into the Python editor. Maybe selecting all is bringing over some garbage.

It seems Python is working, and mobidedrm is executing on a limited basis, so I'm thinking that somehow mobidedrm.py is getting screwed up.

Also, do I need to have Mobireader installed?

Thanks,
Ray
Attached Files
File Type: doc mobidedrm results.doc (45.5 KB, 541 views)
raymino is offline   Reply With Quote
Old 06-25-2008, 07:50 PM   #90
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: 75,392
Karma: 133807966
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Edit the file with Notepad and see if you've anything wrong in there. If so, fix it. Then save it. There is no need to run it from the Python command prompt. Just run it from a command prompt without using any Python command first. Also try it without the quotes. It could be the quotes around the PID that is causing a problem. But dump ALL the quotes to start with.
JSWolf is online now   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 10:53 AM.


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