Git Product home page Git Product logo

Comments (7)

ElleKayEm avatar ElleKayEm commented on July 21, 2024

The key that the plug-in found was not the right one for this book. Was it downloaded to a different PC? Try downloading a fresh copy of the book to the installation of Kindle for PC which is on the same PC as Calibre.

from dedrm_tools.

izenn avatar izenn commented on July 21, 2024

I am having this exact same issue. Something broke in 6.3.x. I tested both 6.3.2 and 6.3.1 and both threw errors. I was able to download 6.2.2 and it decrypted perfectly

Here is my calibre-debug log for 6.3.2:

calibre 2.34 [64bit]  isfrozen: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM
Starting up...
Started up in 2.83 seconds with 2 books
DeDRM v6.3.2: Trying to decrypt B004BSG966_EBOK.azw
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 6, header length 232
Extra Data Flags: 10
Decrypting Mobipocket 6 ebook: Halo: Evolutions Volume II: Essential Tales of the Halo Universe
Found 0 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.3.2: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.3.2: Looking for new default Kindle Key after 0.1 seconds
searching for kinfoFiles in C:\Users\Adam\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\Adam\AppData\Local\Amazon\Kindle\storage\.kinf2011
Decrypted key file using IDString 'removed' and UserName 'removed'
DeDRM v6.3.2: Found 1 new key
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 6, header length 232
Extra Data Flags: 10
Decrypting Mobipocket 6 ebook: Halo: Evolutions Volume II: Essential Tales of the Halo Universe
DeDRM v6.3.2: Ultimately failed to decrypt after 0.2 seconds.
Read the FAQs at Alf's blog: http://apprenticealf.wordpress.com/
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
  File "site-packages\calibre\customize\ui.py", line 155, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 588, in run
  File "calibre_plugins.dedrm.__init__", line 538, in KindleMobiDecrypt
DeDRMError: DeDRM v6.3.2: Ultimately failed to decrypt after 0.2 seconds
Added Halo: Evolutions Volume II: Essential Tales of the Halo Universe to db in: 0.3
Added 1 books in 2.4 seconds

Calibre-debug log for 6.2.2:

calibre 2.34 [64bit]  isfrozen: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM
Starting up...
Started up in 2.06 seconds with 1 books
DeDRM v6.2.2: Trying to decrypt B004BSG966_EBOK.azw
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 6, header length 232
Extra Data Flags: 10
Decrypting Mobipocket 6 ebook: Halo: Evolutions Volume II: Essential Tales of the Halo Universe
Found 0 keys to try after 0.1 seconds
Crypto Type is: 2
DeDRM v6.2.2: Failed to decrypt with error: No key found in 0 keys tried.
DeDRM v6.2.2: Looking for new default Kindle Key after 0.1 seconds
searching for kinfoFiles in C:\Users\Adam\AppData\Local
Found K4PC 1.9+ kinf2011 file: C:\Users\Adam\AppData\Local\Amazon\Kindle\storage\.kinf2011
Decrypted key file using IDString 'removed' and UserName 'removed'
DeDRM v6.2.2: Found 1 new key
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 6, header length 232
Extra Data Flags: 10
Decrypting Mobipocket 6 ebook: Halo: Evolutions Volume II: Essential Tales of the Halo Universe
Found 4 keys to try after 0.1 seconds
Crypto Type is: 2
File is encoded with PID removed.
Decrypting. Please wait . . . . done
Decryption succeeded after 0.2 seconds
DeDRM v6.2.2: Saving 1 new key
DeDRM v6.2.2: Successfully decrypted book after 0.2 seconds
Added Halo: Evolutions Volume II: Essential Tales of the Halo Universe to db in: 0.4
Added 1 books in 1.9 seconds

The following are the links to what i installed:
Broken DeDRM tools:
https://github.com/apprenticeharper/DeDRM_tools/releases/download/v6.3.2/DeDRM_tools.6.3.2.zip
https://github.com/apprenticeharper/DeDRM_tools/releases/download/v6.3.1/tools_v6.3.1.zip

Working DeDRM tools:
https://github.com/apprenticeharper/DeDRM_tools/releases/download/v6.2.2/tools_v6.2.2.zip

Kindle for PC:
http://www.amazon.com/gp/help/customer/display.html?nodeId=201245960

64 bit Calibre:
http://code.calibre-ebook.com/dist/win64

from dedrm_tools.

ElleKayEm avatar ElleKayEm commented on July 21, 2024

Unable to reproduce the problem here. I tried with 2 books, one .mobi and one .azw3. I notice that they are referred to in the error log as MOBI header version 4 and 8 respectively. Whereas the one in adambot's logs is Mobi 6. Here's my successful log:

calibre 2.34 [64bit] isfrozen: True is64bit: True
Windows-8-6.2.9200 Windows ('64bit', 'WindowsPE')
('Windows', '8', '6.2.9200')
Python 2.7.9
Windows: ('8', '6.2.9200', '', 'Multiprocessor Free')
Successfully initialized third party plugins: DeDRM && Obok DeDRM && Quality Che
ck
Starting up...
DEBUG: 0.0 obok::utilities.py - loading translations
DEBUG: 0.0 obok::dialogs.py - loading translations
DEBUG: 0.0 obok::config.py - loading translations
DEBUG: 0.0 obok::action_err.py - loading translations
Started up in 2.36 seconds with 4184 books
DeDRM v6.3.2: Trying to decrypt B004EPYZ08_EBOK.azw
DeDRM v6.3.2: Trying to decrypt B00FJ37BXM_EBOK.azw
Using Library AlfCrypto DLL/DYLIB/SO
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 4, header length 232
Decrypting Mobipocket 4 ebook: The Days of Summer
Found 6 keys to try after 0.2 seconds
Crypto Type is: 2
File is encoded with PID 2EfeZyt8Q6.
Decrypting. Please wait . . . . . . done
Decryption succeeded after 0.2 seconds
DeDRM v6.3.2: Finished after 0.2 seconds
MobiDeDrm v0.41.
Copyright © 2008-2012 The Dark Reverser et al.
MOBI header version 8, header length 264
Extra Data Flags: 3
Decrypting Kindle Format 8 ebook: Thorn Jack: A Night and Nothing Novel (Night a
nd Nothing Novels Book 1)
Found 6 keys to try after 1.1 seconds
Crypto Type is: 2
File is encoded with PID PJbNqs/VRI.
Decrypting. Please wait . . . . . done
Decryption succeeded after 1.1 seconds
DeDRM v6.3.2: Finished after 1.1 seconds
Added Thorn Jack: A Night and Nothing Novel (Night and Nothing Novels Book 1) to
db in: 1.3
Added The Days of Summer to db in: 1.5
Added 2 books in 7.4 seconds

from dedrm_tools.

izenn avatar izenn commented on July 21, 2024

I was doing this on a clean install -- if i upgraded a previous install it worked fine (tested on a different computer)

from dedrm_tools.

ElleKayEm avatar ElleKayEm commented on July 21, 2024

Ahh, yes, something's going wrong when it has to look for a new Kindle key. Mine just used a key it had from before the upgrade.

from dedrm_tools.

apprenticeharper avatar apprenticeharper commented on July 21, 2024

It sounds like something is being done differently for new installs of the latest Kindle for PC. I'll see if I can reproduce it.

from dedrm_tools.

apprenticeharper avatar apprenticeharper commented on July 21, 2024

It was a bug in the plugin. Now fixed in 6.3.3

from dedrm_tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.