DRM Removal Tools for eBooks

Version 6.6.3 released on 30 March, 2019

Welcome to Apprentice Alf’s blog

This blog is intended to help anyone looking for free and simple software for removing DRM from their Kindle ebooks, stripping DRM from their Adobe Digital Editions ebooks, getting rid of DRM from their Barnes and Noble ebooks, freeing their Kobo ebooks of DRM, or decrypting their Fictionwise eReader ebooks.

If you want to find out more about ebooks, DRM and why you will probably want to remove the DRM from your ebooks, see this post:  Ebook Formats, DRM and You — A Guide for the Perplexed.

If you already know that you want to strip the DRM from your ebooks, you’ve found the right place.

The Tools

To get started on removing DRM from your ebooks, just download the tools archive from the link below. Unzip the archive, and start reading.

The latest release can be found at the top of this page:
https://github.com/apprenticeharper/DeDRM_tools/releases

Getting Help with the Tools

If you have any questions about the tools, ebooks, and DRM, check the FAQs at the GitHub repository:
https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

If you have any problems with the current tools, please ask for help in a comment on this post or open a new issue at the GitHub repository. If you are having a problem with an older version of the tools, please first update to the current version, and see if that solves your problem.

Before commenting here, please check the ReadMe file and the FAQs (see link above).

In any bug report or help request, please include:

  • which tool was used
  • which OS you are using
  • where the ebook file came from (device or application)
  • any error messages
  • a log of the DRM-removal attempt (see the FAQs on how to get a log).

Anti-Piracy Notice

Please only use these tools for gaining full access to your own ebooks for archiving/conversion/convenience. De-drmed ebooks should not be uploaded to open servers, torrents, or other methods of mass distribution. No help will be given to people doing such things. Authors, retailers and publishers all need to make a living, so that they can continue to produce books for us to read. Don’t be a parasite.

Origin of the Tools

The tools for removing DRM from ePubs were originally posted at i♥cabbages’ blog. The tools for Kindle/Mobipocket were originally posted at The Dark Reverser’s blog.

They have since been improved by many people, but mostly some_updates, DiapDealer, Apprentice Alf, and Apprentice Harper. While there are many sites that redistribute these tools, the most up-to-date versions of the tools are currently released here.

Other Sources

Anyone trying to sell you ebook DRM removal tools for Adobe Adept ePub and PDFs, Barnes & Noble ePubs, Kindle ebooks, Kobo ebooks, or eReader ebooks has probably just repackaged (an earlier) version of the tools available here.

Advertisements

5,435 thoughts on “DRM Removal Tools for eBooks

  1. I try to convert some recently bought ebooks for kindle from azw3 format. I downloaded these books from the amazon website (download for kindle for usb) and added them to calibre. Kindle for PC and the DeDRM plugin are installed, the books appear in calibre but cannot be opened not converted. Thiy is the calibre log:

    calibre 3.40.1 embedded-python: True is64bit: False
    Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.15+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: de
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0)
    USB devices on system:
    (USBDevice(vendor_id=None product_id=None bcd=None devid=usb\vid_05e3&pid_0605&rev_060; devinst=5),
    USBDevice(vendor_id=0x62a product_id=0x5918 bcd=0x102 devid=usb\vid_062a&pid_5918&rev_0102&mi_00 devinst=6),
    USBDevice(vendor_id=None product_id=None bcd=None devid=usb\root_hub&vid1022&pid7807&rev0011 devinst=7),
    USBDevice(vendor_id=0x930 product_id=0xb09 bcd=0x112 devid=usb\vid_0930&pid_0b09&rev_0112 devinst=8),
    USBDevice(vendor_id=0x1058 product_id=0x1230 bcd=0x1065 devid=usb\vid_1058&pid_1230&rev_1065 devinst=9),
    USBDevice(vendor_id=0x62a product_id=0x5918 bcd=0x102 devid=usb\vid_062a&pid_5918&rev_0102 devinst=10),
    USBDevice(vendor_id=0x5e3 product_id=0x745 bcd=0x903 devid=usb\vid_05e3&pid_0745&rev_0903 devinst=11),
    USBDevice(vendor_id=0x62a product_id=0x5918 bcd=0x102 devid=usb\vid_062a&pid_5918&rev_0102&mi_01 devinst=12),
    USBDevice(vendor_id=0x1058 product_id=0x830 bcd=0x1065 devid=usb\vid_1058&pid_0830&rev_1065 devinst=13),
    USBDevice(vendor_id=0x13fe product_id=0x4100 bcd=0x100 devid=usb\vid_13fe&pid_4100&rev_0100 devinst=14),
    USBDevice(vendor_id=None product_id=None bcd=None devid=usb\root_hub20&vid1022&pid7808&rev0011 devinst=15),
    USBDevice(vendor_id=None product_id=None bcd=None devid=usb\root_hub&vid1022&pid7807&rev0011 devinst=16),
    USBDevice(vendor_id=None product_id=None bcd=None devid=usb\root_hub20&vid1022&pid7808&rev0011 devinst=17),
    USBDevice(vendor_id=None product_id=None bcd=None devid=usb\root_hub30&vid1022&pid7814&rev0009 devinst=18),
    USBDevice(vendor_id=None product_id=None bcd=None devid=usb\root_hub30&vid1022&pid7814&rev0009 devinst=19))

    No disabled plugins
    Looking for devices of type: MTP_DEVICE
    List of WPD PNP ids:
    [u’\\?\swd#wpdbusenum#{89a1120b-0e94-11e4-8257-e03f49eaa2f7}#0000000000007e00#{6ac27878-a6fa-4155-ba85-f98f491d4f33}’,
    u’\\?\swd#wpdbusenum#{2f154e94-d160-11e4-82c3-bc05430da1a1}#0000000000100000#{6ac27878-a6fa-4155-ba85-f98f491d4f33}’,
    u’\\?\swd#wpdbusenum#??_usbstor#disk&ven&prod_usb_disk_2.0&rev_pmap#070b378caec2f707&0#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}#{6ac27878-a6fa-4155-ba85-f98f491d4f33}’,
    u’\\?\swd#wpdbusenum#{2f15418b-d160-11e4-82c3-bc05430da1a1}#0000000000100000#{6ac27878-a6fa-4155-ba85-f98f491d4f33}’]
    No suitable MTP devices found

    Looking for devices of type: SMART_DEVICE_APP
    All IP addresses {‘{99DE414D-2C7B-48AC-ABBC-E475051A8798}’: [{‘broadcast’: u’192.168.178.49′, ‘netmask’: u’255.255.255.255′, ‘addr’: u’192.168.178.49′}], ‘{3CC86DF7-D9B8-11E7-AF86-806E6F6E6963}’: [{‘broadcast’: u’127.0.0.1′, ‘netmask’: u’255.255.255.255′, ‘addr’: u’127.0.0.1′}]}
    No device is connected

    Looking for devices…

    Devices possibly connected: None

  2. That worked! Thank you for your patience! And please excuse me for beeing a noob … didn´t know about the serial number / eInk device.

  3. Hi, I have used DRM Removal Tool just fine until today. I have updated the tool but the error still persists. I’m using Calibre 64 bit on Windows 10, with Kindle for PC (1.26.1) Here is my log: (Thank you for your help by the way)

    calibre Debug log
    calibre 3.40.1 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.17134-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.15+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0) && Obok DeDRM (6, 5, 4)
    calibre 3.40.1 [64bit] embedded-python: True is64bit: True
    Windows-10-10.0.17134-SP0 Windows (’64bit’, ‘WindowsPE’)
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.15+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0) && Obok DeDRM (6, 5, 4)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 95.8113948919 x 95.9160839161
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.00] Showing splash screen…
    [0.09] splash screen shown
    [0.09] Initializing db…
    [0.11] db initialized
    [0.11] Constructing main UI…
    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
    [1.08] main UI initialized…
    [1.08] Hiding splash screen
    [4.72] splash screen hidden
    [4.72] Started up in 4.72 seconds with 6 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [“\xde\xaf?~^\xbf\xfbE\xa8\xd9\xca\xb8\x8e\xb2(\x7f\xd6\xf7\xe3Z\xfbZ]J\xde\xd9o \xed’\x0f\xe0”, ‘C:\Users\SS\Documents\My Kindle Content\B0091MHX08_EBOK\B0091MHX08_EBOK.azw’]
    Gather KFX-ZIP (from KFX Input) 1.14.0: Importing C:\Users\SS\Documents\My Kindle Content\B0091MHX08_EBOK\B0091MHX08_EBOK.azw
    Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as C:\Users\SS\AppData\Local\Temp\calibre_86f8j1\jhoemp.kfx-zip
    DeDRM v6.6.3: Trying to decrypt jhoemp.kfx-zip
    Using Library AlfCrypto DLL/DYLIB/SO
    Decrypting KFX-ZIP ebook: jhoemp
    Got DSN key from database default_key
    Found 1 keys to try after 0.0 seconds
    Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.5c6e41ec-939f-4574-8524-ec9065dc60c0.voucher
    DeDRM v6.6.3: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
    DeDRM v6.6.3: Looking for new default Kindle Key after 0.0 seconds
    searching for kinfoFiles in C:\Users\SS\AppData\Local
    Found K4PC 2.25+ kinf2018 file: C:\Users\SS\AppData\Local\Amazon\Kindle\storage.kinf2018
    Decrypted key file using IDString ‘2687262965’ and UserName ‘5353’
    DeDRM v6.6.3: Found 1 new key
    Decrypting KFX-ZIP ebook: jhoemp
    Got DSN key from database default_key_1
    Found 1 keys to try after 0.1 seconds
    Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.5c6e41ec-939f-4574-8524-ec9065dc60c0.voucher
    DeDRM v6.6.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 624, in run
    File “calibre_plugins.dedrm.init“, line 574, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Package KFX (from KFX Input) 1.14.0: Packaging C:\Users\SS\AppData\Local\Temp\calibre_86f8j1\jhoemp.kfx-zip
    Processing container: B0091MHX08_EBOK.azw
    Running file type plugin Package KFX (from KFX Input) failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.kfx_input.package_filetype”, line 22, in run
    File “calibre_plugins.kfx_input.package_filetype”, line 35, in run_kfx
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 79, in convert_to_single_kfx
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 152, in decode_book
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 263, in get_container
    KFXDRMError: Book container B0091MHX08_EBOK.azw has DRM and cannot be converted
    KFX metadata reader (from KFX Input) activated for C:\Users\SS\AppData\Local\Temp\calibre_86f8j1\qvjsm4_add_books\0\B0091MHX08_EBOK.kfx-zip
    Added Betty Friedan: The Playboy Interview (Singles Classic) (50 Years of the Playboy Interview) to db in: 1.2
    Added 1 books in 1.8 seconds
    Worker Launch took: 0.0980000495911

  4. I am getting this error when I try to update the new plug in. How can I proceed.

    calibre, version 3.37.0
    ERROR: Unhandled exception: InvalidPlugin:The plugin in u’D:\Downloads\DeDRM_tools_6.6.3.zip’ is invalid. It does not contain a top-level init.py file

    calibre 3.37 embedded-python: True is64bit: False
    Windows-10-10.0.17763-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17763’)
    Python 2.7.12+
    Windows: (’10’, ‘10.0.17763’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0)
    Traceback (most recent call last):
    File “site-packages\calibre\gui2\preferences\plugins.py”, line 317, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 472, in add_plugin
    File “site-packages\calibre\customize\ui.py”, line 61, in load_plugin
    File “site-packages\calibre\customize\zipplugin.py”, line 193, in load
    File “site-packages\calibre\customize\zipplugin.py”, line 291, in _locate_code
    InvalidPlugin: The plugin in u’D:\Downloads\DeDRM_tools_6.6.3.zip’ is invalid. It does not contain a top-level init.py file

    • You’re trying to install the whole archive. Unzip DeDRM_tools_6.6.3.zip. Look in the DeDRM_calibre_plugin folder. Load DeDRM_plugin.zip into calibre.

  5. Having trouble with nook deDRM.

    Running Windows 10 Pro (1809), Calibre v3.36, DeDRM plugin v6.63

    Nook for PC won’t log in at all, consistently gives 1016 error. NookStudy won’t log in, giving network connectivity errors consistently, despite the fact that I’ve entirely disabled firewall and my connection is fine for everything else, except: within the DeDRM plugin, attempting to retrieve the key using the verified correct username and password results in the following error message: “Could not retrieve key. Check username, password, and internet connectivity and try again.”
    I have the Windows 10 App installed, but Calibre shows no signs of pulling key data from it, and when I attempt to import books from its folder, they’re still fully DRM’d.

    Is Nook just now uncrackable?

    • I swear, I had attempted to search these comments before posting. Evidently I had only one post and its replies active for the search, “nook” turned up nothing at the time.

      Since posting, I mnanaged to find the rest of the comments. Laura has already answered this elsewhere in the comments — B&N has turned off access for Nook for PC and NookStudy, which has also disabled the Calibre DeDRM plugin’s key retrieval method; currently only a rooted android device can be used to extract Nook epub keys, although newer keys will still work with books downloaded via the new Windows 10 Nook App (if you had logged in after the key change circa 2015 from credit card to current key system, which unfortunately I had not).

      I WOULD appreciate an update should this situation change — for example, if the new Windows 10 App key could be used for key extraction, etc. Otherwise, ignore these posts of mine. Sorry to everyone for my search failure :/

    • I had to load the nook app to get my books. I then searched computer for nook app & followed parhways, looking in folders till I found ePub files. Ended up being in folder at end of paths called “LocalState”. I made a shortcut to this folder & put it on desktop so I can find it when I’m in Calibre to import books. EPubs don’t have names, just numbers sort of like kindle. I just look for date & remember how many I bought.

  6. Hi,

    I’m struggling to decrypt anything using Kindle on my PC. Here is the debug log. Please can you advise?

    calibre Debug log
    calibre 3.40.1 embedded-python: True is64bit: False
    Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.15+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: en_GB
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0)
    calibre 3.40.1 embedded-python: True is64bit: False
    Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.15+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: en_GB
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 118.41774744 x 118.225454545
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.00] Showing splash screen…
    [0.12] splash screen shown
    [0.12] Initializing db…
    [0.14] db initialized
    [0.14] Constructing main UI…
    [1.77] main UI initialized…
    [1.77] Hiding splash screen
    [5.14] splash screen hidden
    [5.14] Started up in 5.14 seconds with 1 books
    Gather KFX-ZIP (from KFX Input) 1.14.0: Importing C:/Users/Dave/Documents/My Kindle Content/B00IWC40JK_EBOK/B00IWC40JK_EBOK.azw
    Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as C:\Users\Dave\AppData\Local\Temp\calibre_rcteaz\kbxmgy.kfx-zip
    DeDRM v6.6.3: Trying to decrypt kbxmgy.kfx-zip
    Using Library AlfCrypto DLL/DYLIB/SO
    Decrypting KFX-ZIP ebook: kbxmgy
    Found 0 keys to try after 0.1 seconds
    Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.2898bddf-3846-4a89-9aaf-987ab5243d45.voucher
    DeDRM v6.6.3: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
    DeDRM v6.6.3: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\Dave\AppData\Local
    Found K4PC 2.25+ kinf2018 file: C:\Users\Dave\AppData\Local\Amazon\Kindle\storage.kinf2018
    Decrypted key file using IDString ‘1050402397’ and UserName ‘4a6f6e’
    DeDRM v6.6.3: Found 1 new key
    Decrypting KFX-ZIP ebook: kbxmgy
    Got DSN key from database default_key_1
    Found 1 keys to try after 0.2 seconds
    Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.2898bddf-3846-4a89-9aaf-987ab5243d45.voucher
    DeDRM v6.6.3: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 624, in run
    File “calibre_plugins.dedrm.init“, line 574, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Package KFX (from KFX Input) 1.14.0: Packaging C:\Users\Dave\AppData\Local\Temp\calibre_rcteaz\kbxmgy.kfx-zip
    Processing container: B00IWC40JK_EBOK.azw
    Running file type plugin Package KFX (from KFX Input) failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.kfx_input.package_filetype”, line 22, in run
    File “calibre_plugins.kfx_input.package_filetype”, line 35, in run_kfx
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 79, in convert_to_single_kfx
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 152, in decode_book
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 263, in get_container
    KFXDRMError: Book container B00IWC40JK_EBOK.azw has DRM and cannot be converted
    KFX metadata reader (from KFX Input) activated for C:\Users\Dave\AppData\Local\Temp\calibre_rcteaz\iwclwg_add_books\0\B00IWC40JK_EBOK.kfx-zip
    Added Doctor How and the Illegal Aliens: Book 1: The Doctor Who is not a Time Lord to db in: 1.9
    Added 1 books in 3.3 seconds

  7. I was unable to get the plugin to work. Running Calibre on LInux Mint 19. Any assistance on this would be appreciated. Here’s my log:
    qt5ct: using qt5ct plugin
    qt5ct: D-Bus global menu: no
    libpng warning: iCCP: known incorrect sRGB profile
    libpng warning: iCCP: known incorrect sRGB profile
    qt5ct: D-Bus system tray: no
    calibre Debug log
    calibre 3.21 embedded-python: False is64bit: True
    Linux-4.15.0-46-generic-x86_64-with-LinuxMint-19.1-tessa Linux (’64bit’, ”)
    (‘Linux’, ‘4.15.0-46-generic’, ‘#49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019’)
    Python 2.7.15rc1
    Linux: (‘LinuxMint’, ‘19.1’, ‘tessa’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 6, 3)
    calibre 3.21 embedded-python: False is64bit: True
    Linux-4.15.0-46-generic-x86_64-with-LinuxMint-19.1-tessa Linux (’64bit’, ”)
    (‘Linux’, ‘4.15.0-46-generic’, ‘#49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019’)
    Python 2.7.15rc1
    Linux: (‘LinuxMint’, ‘19.1’, ‘tessa’)
    Interface language: None
    Successfully initialized third party plugins: DeDRM (6, 6, 3)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 106.387434555 x 106.822429907
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.01] Showing splash screen…
    [0.13] splash screen shown
    [0.13] Initializing db…
    [0.15] db initialized
    [0.15] Constructing main UI…
    Loaded cached store plugin for: Amazon Kindle at version: 16
    Loaded cached store plugin for: Beam EBooks DE at version: 4
    Loaded cached store plugin for: Mills and Boon UK at version: 4
    Loaded cached store plugin for: Google Books at version: 5
    Looking for desktop notifier support from: org.freedesktop.Notifications
    org.freedesktop.Notifications found in 0.0 seconds
    [0.88] main UI initialized…
    [0.88] Hiding splash screen
    DeDRM v6.6.3: Trying to decrypt Suite for Barbara Loden.epub
    DeDRM v6.6.3: Verifying zip archive integrity
    DeDRM v6.6.3: Suite for Barbara Loden.epub is a secure Adobe Adept ePub
    DeDRM v6.6.3: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
    DeDRM v6.6.3: Running adobekey.py under Wine
    DeDRM v6.6.3: Command line: ‘WINEPREFIX=”/home/sue” wine python.exe “/home/sue/.config/calibre/plugins/DeDRM/libraryfiles/adobekey.py” “/home/sue/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir”‘
    [18.76] splash screen hidden
    [18.76] Started up in 18.76 seconds with 2 books
    wine: cannot find L”C:\windows\system32\python.exe”
    DeDRM v6.6.3: Found and decrypted 0 key files
    DeDRM v6.6.3: Exception when getting default Adobe Key after 1.1 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 356, in ePubDecrypt
    IndexError: list index out of range
    DeDRM v6.6.3: Ultimately failed to decrypt after 1.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “/usr/lib/calibre/calibre/customize/ui.py”, line 171, in _run_filetype_plugins
    nfp = plugin.run(nfp) or nfp
    File “calibre_plugins.dedrm.init“, line 635, in run
    File “calibre_plugins.dedrm.init“, line 406, in ePubDecrypt
    DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 1.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

    • Configure your wine so that it can find python by default. “wine: cannot find L”C:\windows\system32\python.exe””

      Or run the adobekey.py script manually under wine, and import the key file into the plugin.

  8. Hi,
    Received this book through my school library.
    Want to read it on my kindle which they don’t support.
    Downloaded it through Adobe digital editions

    2019-04-05 04:53:26.495 Calibre[46087:507] deliverNotificationWithTitle()
    * Notification delivered.
    DeDRM v6.6.3: Trying to decrypt Being White, Being Good.epub
    DeDRM v6.6.3: Verifying zip archive integrity
    DeDRM v6.6.3: Being White, Being Good.epub is a secure Adobe Adept ePub
    DeDRM v6.6.3: Looking for new default Adobe Digital Editions Keys after 0.1 seconds
    DeDRM v6.6.3: Exception when getting default Adobe Key after 0.1 seconds
    Traceback (most recent call last):
    File “calibre_plugins.dedrm.init“, line 349, in ePubDecrypt
    File “calibre_plugins.dedrm.adobekey”, line 446, in adeptkeys
    ADEPTError: Could not find ADE activation.dat file.
    DeDRM v6.6.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 635, in run
    File “calibre_plugins.dedrm.init“, line 406, in ePubDecrypt
    DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md

    {‘bsd_drives’: {‘main’: u’/dev/disk2s1′},
    ‘drives’: {‘main’: ‘/Volumes/Kindle’},
    ‘mount_map’: {‘/dev/disk0s2’: ‘/’,
    ‘/dev/disk1s1’: ‘/Volumes/calibre-3.40.1’,
    ‘/dev/disk2s1’: ‘/Volumes/Kindle’,
    ‘devfs’: ‘/dev’,
    ‘map -hosts’: ‘/net’,
    ‘map auto_home’: ‘/home’}}

    Any Help is appreciated if this is possible.
    Thank you

  9. Hi,

    I get the following error msg while converting book purchased from amazon:

    calibre Debug log
    calibre 3.40.1 embedded-python: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.15+
    Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0) && Set KFX metadata (from KFX Output) (1, 28, 0) && KFX Output (1, 28, 0)
    calibre 3.40.1 embedded-python: True is64bit: False
    Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
    (‘Windows’, ‘7’, ‘6.1.7601’)
    Python 2.7.15+
    Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0) && Set KFX metadata (from KFX Output) (1, 28, 0) && KFX Output (1, 28, 0)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 72.035450517 x 72.0
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.02] Showing splash screen…
    [0.12] splash screen shown
    [0.12] Initializing db…
    [0.14] db initialized
    [0.14] Constructing main UI…
    [1.56] main UI initialized…
    [1.56] Hiding splash screen
    [4.06] splash screen hidden
    [4.06] Started up in 4.06 seconds with 1 books
    Worker Launch took: 0.216000080109
    Job: 1 Convert book 1 of 1 (Kashmirnama (Hindi Edition)) finished
    Convert book 1 of 1 (Kashmirnama (Hindi Edition))
    Conversion options changed from defaults:
    verbose: 2
    personal_doc: None
    read_metadata_from_opf: u’C:\Users\SinghJ\AppData\Local\Temp\calibre_jzir_m\qlcbb0.opf’
    cover: u’C:\Users\SinghJ\AppData\Local\Temp\calibre_jzir_m\s8p4nx.jpeg’
    output_profile: ‘kindle_pw3′
    mobi_file_type: u’both’
    Resolved conversion options
    calibre version: 3.40.1
    {‘allow_conversion_with_errors’: False,
    ‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//[((name()=’h1′ or name()=’h2′) and re:test(., ‘\s((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’C:\Users\SinghJ\AppData\Local\Temp\calibre_jzir_m\s8p4nx.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_compress’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: <calibre.customize.profiles.InputProfile object at 0x028FED10>,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘mobi_file_type’: u’both’,
    ‘mobi_ignore_margins’: False,
    ‘mobi_keep_original_images’: False,
    ‘mobi_toc_at_start’: False,
    ‘no_chapters_in_toc’: False,
    ‘no_inline_navbars’: True,
    ‘no_inline_toc’: False,
    ‘output_profile’: <calibre.customize.profiles.KindlePaperWhite3Output object at 0x028F1130>,
    ‘page_breaks_before’: u’/’,
    ‘personal_doc’: None,
    ‘prefer_author_sort’: False,
    ‘prefer_metadata_cover’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\Users\SinghJ\AppData\Local\Temp\calibre_jzir_m\qlcbb0.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]’,
    ‘series’: None,
    ‘series_index’: None,
    ‘share_not_sync’: False,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘transform_css_rules’: ‘[]’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: KFX Input running
    on C:\Users\SinghJ\AppData\Local\Temp\calibre_jzir_m\ecpmgq.kfx-zip
    Software versions: KFX Input 1.14.0, calibre 3.40.1, Windows-7-6.1.7601-SP1
    KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290
    Converting C:\Users\SinghJ\AppData\Local\Temp\calibre_jzir_m\ecpmgq.kfx-zip
    Processing container: B079MDYLYQ_EBOK.azw
    Traceback (most recent call last):
    File “calibre_plugins.kfx_input.init“, line 102, in convert
    File “calibre_plugins.kfx_input.init“, line 204, in convert_from_kfx
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 98, in convert_to_epub
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 152, in decode_book
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 263, in get_container
    KFXDRMError: Book container B079MDYLYQ_EBOK.azw has DRM and cannot be converted
    Python function terminated unexpectedly
    This book has DRM! (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 101, in main
    File “site.py”, line 78, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 199, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 42, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 27, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1106, in run
    File “site-packages\calibre\customize\conversion.py”, line 244, in call
    File “calibre_plugins.kfx_input.init“, line 105, in convert
    calibre.ebooks.DRMError: This book has DRM!

    Your help will be greatly appreciated

    Regds
    Jit

      • Hi,
        Please see the log created durin adding book to calibre:

        calibre Debug log
        calibre 3.40.1 embedded-python: True is64bit: False
        Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
        (‘Windows’, ‘7’, ‘6.1.7601’)
        Python 2.7.15+
        Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
        Interface language: None
        Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0) && Set KFX metadata (from KFX Output) (1, 28, 0) && KFX Output (1, 28, 0)
        calibre 3.40.1 embedded-python: True is64bit: False
        Windows-7-6.1.7601-SP1 Windows (’32bit’, ‘WindowsPE’)
        (‘Windows’, ‘7’, ‘6.1.7601’)
        Python 2.7.15+
        Windows: (‘7’, ‘6.1.7601’, ‘SP1′, u’Multiprocessor Free’)
        Interface language: None
        Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0) && Set KFX metadata (from KFX Output) (1, 28, 0) && KFX Output (1, 28, 0)
        Turning on automatic hidpi scaling
        devicePixelRatio: 1.0
        logicalDpi: 96.0 x 96.0
        physicalDpi: 72.035450517 x 72.0
        Using calibre Qt style: True
        [0.00] Starting up…
        [0.01] Showing splash screen…
        [0.12] splash screen shown
        [0.12] Initializing db…
        [0.12] db initialized
        [0.12] Constructing main UI…
        [1.79] main UI initialized…
        [1.79] Hiding splash screen
        [6.50] splash screen hidden
        [6.50] Started up in 6.50 seconds with 0 books
        stdout+stderr from file dialog helper: [”, ”]
        piped data from file dialog helper: [“\xca\x9a+ O\xa6\x15M\xaac\xb8\xb3\xb98\xdb\x13b,\xefpW\xb6\x97’\xd5\x13Je\xd6F\xee\xde”, ‘C:\input\Kashmirnama\B079MDYLYQ_EBOK\B079MDYLYQ_EBOK.azw’]
        Gather KFX-ZIP (from KFX Input) 1.14.0: Importing C:\input\Kashmirnama\B079MDYLYQ_EBOK\B079MDYLYQ_EBOK.azw
        Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as C:\Users\SinghJ\AppData\Local\Temp\calibre_qslbpr\pltt8n.kfx-zip
        DeDRM v6.6.3: Trying to decrypt pltt8n.kfx-zip
        Using Library AlfCrypto DLL/DYLIB/SO
        Decrypting KFX-ZIP ebook: pltt8n
        Got DSN key from database default_key
        Found 2 keys to try after 0.3 seconds
        Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.9f7a69c7-683d-4126-92ac-3d7627591c9c.voucher
        DeDRM v6.6.3: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
        DeDRM v6.6.3: Looking for new default Kindle Key after 0.3 seconds
        searching for kinfoFiles in C:\Users\SinghJ\AppData\Local
        Found K4PC 2.25+ kinf2018 file: C:\Users\SinghJ\AppData\Local\Amazon\Kindle\storage.kinf2018
        Decrypted key file using IDString ‘303198811’ and UserName ‘53696e67684a’
        DeDRM v6.6.3: Found 1 new key
        Decrypting KFX-ZIP ebook: pltt8n
        Got DSN key from database default_key_1
        Found 1 keys to try after 0.6 seconds
        Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.9f7a69c7-683d-4126-92ac-3d7627591c9c.voucher
        DeDRM v6.6.3: Ultimately failed to decrypt after 0.6 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
        Running file type plugin DeDRM failed with traceback:
        Traceback (most recent call last):
        File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
        File “calibre_plugins.dedrm.init“, line 624, in run
        File “calibre_plugins.dedrm.init“, line 574, in KindleMobiDecrypt
        DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.6 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
        Package KFX (from KFX Input) 1.14.0: Packaging C:\Users\SinghJ\AppData\Local\Temp\calibre_qslbpr\pltt8n.kfx-zip
        Processing container: B079MDYLYQ_EBOK.azw
        Running file type plugin Package KFX (from KFX Input) failed with traceback:
        Traceback (most recent call last):
        File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
        File “calibre_plugins.kfx_input.package_filetype”, line 22, in run
        File “calibre_plugins.kfx_input.package_filetype”, line 35, in run_kfx
        File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 79, in convert_to_single_kfx
        File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 152, in decode_book
        File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 263, in get_container
        KFXDRMError: Book container B079MDYLYQ_EBOK.azw has DRM and cannot be converted
        KFX metadata reader (from KFX Input) activated for C:\Users\SinghJ\AppData\Local\Temp\calibre_qslbpr\v_nfgu_add_books\0\B079MDYLYQ_EBOK.kfx-zip
        Added Kashmirnama (Hindi Edition) to db in: 1.4
        Added 1 books in 3.3 seconds

        Regds
        J

          • Only for newer KFX the key cannot be used.
            But there is a way to modify Kindle, so the KFX File is not downloaded, but (on Mac at least) while it works, and you can download ebooks, it crashes on exiting the App, whish might bother some. You need to download manually (rightclick download or assign a keystroke to it).

            For Windows the modification should be similar, it is described on the mobileread forum.
            https://www.mobileread.com/forums/showthread.php?t=283371
            Look into Method 2 – Disable KFX support in Kindle for PC/Mac, if you understand what you need to do, the modification is similar for the newer Kindle App. Again with a warning, not for the faint of heart.

            One reason for Mac Users to do this is that Apps for Mac OS X after mojave must be 64bit, and the older Kindle for Mac App is 32bit.
            Next macOS will probably be shown at the June Developer Conference and a publishing date might be later in the fall, Sept-Oct or so.

  10. I’m also having problems with purchased books (kfx format specifically). It used to work until a few weeks ago. azw3 format still imports without problems.

    calibre Debug log
    calibre 3.40.1 embedded-python: True is64bit: False
    Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.15+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0) && Overdrive Link (2, 32, 0) && Set KFX metadata (from KFX Output) (1, 28, 0) && KFX Output (1, 28, 0) && Find Duplicates (1, 6, 3)
    calibre 3.40.1 embedded-python: True is64bit: False
    Windows-10-10.0.17134-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17134’)
    Python 2.7.15+
    Windows: (’10’, ‘10.0.17134’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0) && Overdrive Link (2, 32, 0) && Set KFX metadata (from KFX Output) (1, 28, 0) && KFX Output (1, 28, 0) && Find Duplicates (1, 6, 3)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 96.0 x 96.0
    physicalDpi: 96.0 x 95.9160839161
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.00] Showing splash screen…
    [0.11] splash screen shown
    [0.11] Initializing db…
    [0.16] db initialized
    [0.16] Constructing main UI…
    [1.98] main UI initialized…
    [1.98] Hiding splash screen
    Storage number map:
    {(7L, 0L): [(4L, ‘C’)],
    (7L, 1L): [(2L, ‘D’)],
    (7L, 2L): [(1L, ‘I’)],
    (7L, 3L): [(1L, ‘J’)],
    (7L, 4L): [(1L, ‘F’)]}
    Storage number for USBSTOR\DISK&VEN_KINDLE&PROD_INTERNAL_STORAGE&REV_0100\B0XXXXXXXXXXX&0: StorageDeviceNumber(type=7L, number=4L, partition_number=0L)
    Drive letters for USBDevice(vendor_id=0x1949 product_id=0x4 bcd=0x100 devid=usb\vid_1949&pid_0004&rev_0100 devinst=22)
    {u’drive_letters’: [‘F’],
    u’pnp_id_map’: {‘F’: u’\\?\usbstor#disk&ven_kindle&prod_internal_storage&rev_0100#bXXXXXXXXXXXXXbr&0#{XXXXXXXXXXXXXXXX}’},
    u’readonly_drives’: set([]),
    u’sort_map’: {‘F’: (4L, 1L)}}
    Job: 1 Get device information started
    DeviceJob: 1 Get device information done, calling callback
    DeviceJob: 1 Get device information callback returned
    Job: 2 Set library information started
    DeviceJob: 2 Set library information done, calling callback
    DeviceJob: 2 Set library information callback returned
    Job: 3 Get list of books on device started
    DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
    DEBUG: 0.0 USBMS: dirs are: F:\ documents
    Job: 2 Set library information finished
    No details available.
    Job: 1 Get device information finished
    No details available.
    DEBUG: 0.1 USBMS: scan from root False F:\documents
    DEBUG: 1.7 USBMS: count found in cache: 190, count of files in metadata: 190, need_sync: False
    DEBUG: 1.7 USBMS: Finished fetching list of books from device. oncard= None
    DEBUG: 1.7 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
    DEBUG: 1.7 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
    DeviceJob: 3 Get list of books on device done, calling callback
    DeviceJob: metadata_downloaded: Starting set_books_in_library
    DeviceJob: set_books_in_library: books to process= 190
    DeviceJob: set_books_in_library finished: time= 0.0120000839233
    DeviceJob: metadata_downloaded: updating views
    DeviceJob: metadata_downloaded: syncing
    DeviceJob: metadata_downloaded: refreshing ondevice
    DeviceJob: metadata_downloaded: sending metadata_available signal
    DeviceJob: 3 Get list of books on device callback returned
    Job: 3 Get list of books on device finished
    No details available.
    [361.03] splash screen hidden
    [361.03] Started up in 361.03 seconds with 794 books
    Gather KFX-ZIP (from KFX Input) 1.14.0: Importing F:\documents\Artifacts of Death (Manny Rivera Mystery Series Book 1)B004PLNIFE.kfx
    Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as C:\Users\ellen
    \AppData\Local\Temp\calibre_5rxlqr\hoy5g8.kfx-zip
    DeDRM v6.6.3: Trying to decrypt hoy5g8.kfx-zip
    Using Library AlfCrypto DLL/DYLIB/SO
    Decrypting KFX-ZIP ebook: hoy5g8
    Found 3 keys to try after 0.1 seconds
    Decrypting KFX DRM voucher: voucher
    DeDRM v6.6.3: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
    DeDRM v6.6.3: Looking for new default Kindle Key after 0.1 seconds
    searching for kinfoFiles in C:\Users\ellen_\AppData\Local
    Found K4PC 2.25+ kinf2018 file: C:\Users\ellen_\AppData\Local\Amazon\Kindle\storage.kinf2018
    Decrypted key file using IDString ‘XXXXXXXXXX’ and UserName ‘YYYYYYYYY’
    DeDRM v6.6.3: Found 1 new key
    Decrypting KFX-ZIP ebook: hoy5g8
    Got DSN key from database default_key_1
    Found 1 keys to try after 0.2 seconds
    Decrypting KFX DRM voucher: voucher
    DeDRM v6.6.3: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 172, in run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 624, in run
    File “calibre_plugins.dedrm.init“, line 574, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.2 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Package KFX (from KFX Input) 1.14.0: Packaging C:\Users\ellen
    \AppData\Local\Temp\calibre_5rxlqr\hoy5g8.kfx-zip
    Processing container: Artifacts of Death (Manny Rivera Mystery Series Book 1)B004PLNIFE.kfx
    Running file type plugin Package KFX (from KFX Input) failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.kfx_input.package_filetype”, line 22, in run
    File “calibre_plugins.kfx_input.package_filetype”, line 35, in run_kfx
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 79, in convert_to_single_kfx
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 152, in decode_book
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 263, in get_container
    KFXDRMError: Book container Artifacts of Death (Manny Rivera Mystery Series Book 1)_B004PLNIFE.kfx has DRM and cannot be converted
    KFX metadata reader (from KFX Input) activated for C:\Users\ellen
    \AppData\Local\Temp\calibre_5rxlqr\guiz_m_add_books\0\Artifacts of Death (Manny Rivera Mystery Series Book 1)B004PLNIFE.kfx-zip
    Added Artifacts of Death (Manny Rivera Mystery Series Book 1) to db in: 2.1
    Added 1 books in 4.0 seconds
    Worker Launch took: 0.173000097275

  11. Hi, I’ve been trying to get this to work for a while and I can’t figure it out. Please help. It is a Japanese book but I have been able to remove the drm on them before but this time it is not working.

    calibre 3.40.1 embedded-python: True is64bit: False
    Windows-10-10.0.17763-SP0 Windows (’32bit’, ‘WindowsPE’)
    32bit process running on 64bit windows
    (‘Windows’, ’10’, ‘10.0.17763’)
    Python 2.7.15+
    Windows: (’10’, ‘10.0.17763’, ‘SP0′, u’Multiprocessor Free’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && Set KFX metadata (from KFX Output) (1, 28, 0) && KFX Output (1, 28, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0)
    Turning on automatic hidpi scaling
    devicePixelRatio: 1.0
    logicalDpi: 120.0 x 120.0
    physicalDpi: 166.443686007 x 166.254545455
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.01] Showing splash screen…
    [0.11] splash screen shown
    [0.11] Initializing db…
    [0.12] db initialized
    [0.12] Constructing main UI…
    [1.31] main UI initialized…
    [1.31] Hiding splash screen
    [2.00] splash screen hidden
    [2.00] Started up in 2.00 seconds with 1 books
    stdout+stderr from file dialog helper: [”, ”]
    piped data from file dialog helper: [‘\xd5\x91\xf9\xe2\x8f\x11\x9c\x87,\xcc\x1f\xa5h\xdf\xdf)\xb9%\xd8\xa7q\xa1\xa5\xafb\xbd\xe7\xca\r\x16\xec\xf7’, ‘C:\Users\usagi\Documents\My Kindle Content\B07QFCY1PM_EBOK.azw’]
    Gather KFX-ZIP (from KFX Input) 1.14.0: Importing C:\Users\usagi\Documents\My Kindle Content\B07QFCY1PM_EBOK.azw
    Gather KFX-ZIP (from KFX Input): File is not KFX format
    DeDRM v6.6.3: Trying to decrypt B07QFCY1PM_EBOK.azw
    Using Library AlfCrypto DLL/DYLIB/SO
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: GUSH 2019年5月号
    Found 0 keys to try after 1.5 seconds
    Crypto Type is: 2
    DeDRM v6.6.3: Failed to decrypt with error: No key found in 0 keys tried.
    DeDRM v6.6.3: Looking for new default Kindle Key after 1.5 seconds
    searching for kinfoFiles in C:\Users\usagi\AppData\Local
    Found K4PC 1.9+ kinf2011 file: C:\Users\usagi\AppData\Local\Amazon\Kindle\storage.kinf2011
    Decrypted key file using IDString ‘1008622156’ and UserName ‘436861726c6579’
    DeDRM v6.6.3: Found 1 new key
    MobiDeDrm v0.42.
    Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
    Decrypting Kindle Format 8 ebook: GUSH 2019年5月号
    Got DSN key from database default_key_1
    Found 4 keys to try after 2.0 seconds
    Crypto Type is: 2
    DeDRM v6.6.3: Ultimately failed to decrypt after 2.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages\calibre\customize\ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 624, in run
    File “calibre_plugins.dedrm.init“, line 574, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 2.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Added GUSH 2019年5月号 to db in: 1.1
    Added 1 books in 4.2 seconds
    Worker Launch took: 0.131999969482
    Job: 1 Convert book 1 of 1 (GUSH 2019年5月号) finished
    Convert book 1 of 1 (GUSH 2019年5月号)
    Conversion options changed from defaults:
    read_metadata_from_opf: u’C:\Users\usagi\AppData\Local\Temp\calibre_mqjvby\ogxidd.opf’
    cover: u’C:\Users\usagi\AppData\Local\Temp\calibre_mqjvby\_hpoyj.jpeg’
    output_profile: ‘generic_eink’
    verbose: 2
    Resolved conversion options
    calibre version: 3.40.1
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//*[((name()=’h1′ or name()=’h2′) and re:test(., ‘\s*((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’C:\Users\usagi\AppData\Local\Temp\calibre_mqjvby\_hpoyj.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_split_on_page_breaks’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘epub_flatten’: False,
    ‘epub_inline_toc’: False,
    ‘epub_toc_at_end’: False,
    ‘epub_version’: u’2′,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘flow_size’: 260,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: <calibre.customize.profiles.InputProfile object at 0x05B61C70>,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘no_chapters_in_toc’: False,
    ‘no_default_epub_cover’: False,
    ‘no_inline_navbars’: False,
    ‘no_svg_cover’: False,
    ‘output_profile’: <calibre.customize.profiles.GenericEink object at 0x05B61E70>,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘prefer_metadata_cover’: False,
    ‘preserve_cover_aspect_ratio’: False,
    ‘pretty_print’: True,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\Users\usagi\AppData\Local\Temp\calibre_mqjvby\ogxidd.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]’,
    ‘series’: None,
    ‘series_index’: None,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘transform_css_rules’: ‘[]’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\usagi\AppData\Local\Temp\calibre_mqjvby\8qbl8l.azw
    Found KF8 MOBI of type ‘standalone’
    Python function terminated unexpectedly
    GUSH 2019年5月号 (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 101, in main
    File “site.py”, line 78, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 199, in main
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 42, in gui_convert_override
    File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 27, in gui_convert
    File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1106, in run
    File “site-packages\calibre\customize\conversion.py”, line 244, in call
    File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 45, in convert
    File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 86, in call
    File “site-packages\calibre\ebooks\mobi\reader\mobi6.py”, line 157, in check_for_drm
    calibre.ebooks.DRMError: GUSH 2019年5月号

  12. Hello

    I am using Calibre for Mac and trying to add books from Kindle devices (using a USB connection). I have been doing this for years using this program and it has always worked for me before but for some reason it is no longer working.

    I have put the serial numbers into the eInk records. I tried uninstalling and installing new versions of both the KFX input and the DeDRM plugins, as well as updating to the latest version of Calibre but nothing has changed.

    Any help would be greatly appreciated.

    The error log is:

    calibre Debug log
    calibre 3.40.1 embedded-python: True is64bit: True
    Darwin-18.5.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘18.5.0’, ‘Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64’)
    Python 2.7.15
    OSX: (‘10.14.4’, (”, ”, ”), ‘x86_64′)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0) && Set KFX metadata (from KFX Output) (1, 28, 0) && KFX Output (1, 28, 0)
    calibre 3.40.1 embedded-python: True is64bit: True
    Darwin-18.5.0-x86_64-i386-64bit Darwin (’64bit’, ”)
    (‘Darwin’, ‘18.5.0’, ‘Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64’)
    Python 2.7.15
    OSX: (‘10.14.4’, (”, ”, ”), ‘x86_64’)
    Interface language: None
    Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 14, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 14, 0) && KFX metadata reader (from KFX Input) (1, 14, 0) && KFX Input (1, 14, 0) && Set KFX metadata (from KFX Output) (1, 28, 0) && KFX Output (1, 28, 0)
    devicePixelRatio: 2.0
    logicalDpi: 72.0 x 72.0
    physicalDpi: 128.000001922 x 127.500001915
    Using calibre Qt style: True
    [0.00] Starting up…
    [0.04] Showing splash screen…
    [0.26] splash screen shown
    [0.26] Initializing db…
    [0.31] db initialized
    [0.31] Constructing main UI…
    [1.28] main UI initialized…
    [1.28] Hiding splash screen
    [1.35] splash screen hidden
    [1.37] Started up in 1.37 seconds with 419 books
    objc[56447]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffa18173c8) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x114063f50). One of the two will be used. Which one is undefined.
    2019-04-14 19:12:19.437 Calibre[56465:9559051] deliverNotificationWithTitle()
    * Notification delivered.
    Gather KFX-ZIP (from KFX Input) 1.14.0: Importing /Volumes/Kindle/documents/The Child Thief 4_ Little Lies_B07GZNV1V7.kfx
    Gather KFX-ZIP (from KFX Input): Gathered 6 file(s) as /var/folders/0w/4h2qmzhx1mvg_btb0g9lkx3w0000gn/C/calibre_3.40.1_tmp_LdO244/aTlwB3.kfx-zip
    DeDRM v6.6.3: Trying to decrypt aTlwB3.kfx-zip
    Using Library AlfCrypto DLL/DYLIB/SO
    Decrypting KFX-ZIP ebook: aTlwB3
    Found 5 keys to try after 0.1 seconds
    Decrypting KFX DRM voucher: voucher
    DeDRM v6.6.3: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
    DeDRM v6.6.3: Looking for new default Kindle Key after 0.1 seconds
    No k4Mac kindle-info/rainier/kinf2011 files have been found.
    DeDRM v6.6.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin DeDRM failed with traceback:
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 172, in run_filetype_plugins
    File “calibre_plugins.dedrm.init“, line 624, in run
    File “calibre_plugins.dedrm.init“, line 574, in KindleMobiDecrypt
    DeDRMError: DeDRM v6.6.3: Ultimately failed to decrypt after 0.1 seconds. Read the FAQs at Harper’s repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md
    Running file type plugin Package KFX (from KFX Input) failed with traceback:
    Traceback (most recent call last):
    File “site-packages/calibre/customize/ui.py”, line 172, in _run_filetype_plugins
    File “calibre_plugins.kfx_input.package_filetype”, line 22, in run
    File “calibre_plugins.kfx_input.package_filetype”, line 35, in run_kfx
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 79, in convert_to_single_kfx
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 152, in decode_book
    File “calibre_plugins.kfx_input.kfxlib.yj_book”, line 263, in get_container
    KFXDRMError: Book container The Child Thief 4 Little Lies_B07GZNV1V7.kfx has DRM and cannot be converted

  13. I have Calibre, ADE 4.5 and Windows 7.Everytime I try to download DeDRM tool 6.6.3 I receive an error message: “Invalid plugin. The plugin DeDRM -6.6.3 is invalid. It does not contain a top-level_init_.py file”
    Is there any way past this error?

    Kevin Murphy

  14. Thanks for a great tool. I just wanted to make a couple comments because after struggling through this for several days I saw the one comment that I overlooked several times and when i followed the instructions I am now able to remove DRM from kindle books. I will assume there is at least one other person who is confused and doesn’t read all the instructions.

    Quick Overview – I run Calibre on a separate server that I do not normally do any non-server work. It is also my plex server. I use my PC to RDP into the server when needed.

    I installed DeDRM and KFX Input and KFX Output in calibre on my server and was using the Kindle for PC on my PC. I used different versions of the Kindle app and currently have 1.24.3. I finally saw the mention that calibre had to be on the same PC as the Kindle for PC app. I read it multiple times yet it did not register with my brain. So instead of installing Kindle for PC on my server, I installed a fresh copy of calibre on my PC and will use it to remove DRM and convert to other formats, then move over to the server library.

    For those having difficulty, it is a bit confusing but it does work. I was able to Add all my Kindle books to the new library. Depending on the book, they showed up as KFX, AWZ or mobi in Calibre. Several were older purchases and a couple were more recent. Before using DeDRM and KFX I/O several were DRM’d and could not be opened in calibre. I had to convert the KFX books in Calibre to epub but before this, they would say they were DRM protected and could not be converted, now they converted easily.

    So the bottom line is that you need to have DeDRM installed to remove the DRM and KFX I/O to convert to epub or whatever from KFX. You need to have calibre on the same PC you are running the Kindle for PC application to remove DRM successfully.

    Thanks again for a great product and for keeping up with the never ending amazon changes to their DRM.

  15. Hi Alf!

    Thank you very much for your efforts developing and maintaining this great tool. Great work!

    I’ve got a problem converting an ePub-File with -I think- a DRM-system called CARE-DRM. I installed the current version of your plugin in calibre and followed the instructions to convert this file. Unfortunatly the conversion stopped with an error (s. below). My question, how can I convert files with this DRM to the MOBI-format? Thank you for your help!

    Here is the error-trace I received from calibre:

    Buch 1 von 1 (Die Analphabetin, die rechnen konnte) konvertieren
    Conversion options changed from defaults:
    output_profile: ‘kindle_pw3′
    read_metadata_from_opf: u’/var/folders/tc/pqnqrvvd1k9d_t23g9gm45lh0000gn/C/calibre_3.41.3_tmp_ZxxZuk/W0WGJf.opf’
    verbose: 2
    cover: u’/var/folders/tc/pqnqrvvd1k9d_t23g9gm45lh0000gn/C/calibre_3.41.3_tmp_ZxxZuk/i3YmH4.jpeg’
    Resolved conversion options
    calibre version: 3.41.3
    {‘asciiize’: False,
    ‘author_sort’: None,
    ‘authors’: None,
    ‘base_font_size’: 0.0,
    ‘book_producer’: None,
    ‘change_justification’: u’original’,
    ‘chapter’: u”//[((name()=’h1′ or name()=’h2′) and re:test(., ‘\s((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))’, ‘i’)) or @class = ‘chapter’]”,
    ‘chapter_mark’: u’pagebreak’,
    ‘comments’: None,
    ‘cover’: u’/var/folders/tc/pqnqrvvd1k9d_t23g9gm45lh0000gn/C/calibre_3.41.3_tmp_ZxxZuk/i3YmH4.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘dont_compress’: False,
    ‘duplicate_links_in_toc’: False,
    ’embed_all_fonts’: False,
    ’embed_font_family’: None,
    ‘enable_heuristics’: False,
    ‘expand_css’: False,
    ‘extra_css’: None,
    ‘extract_to’: None,
    ‘filter_css’: u”,
    ‘fix_indents’: True,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: <calibre.customize.profiles.InputProfile object at 0x114746a10>,
    ‘insert_blank_line’: False,
    ‘insert_blank_line_size’: 0.5,
    ‘insert_metadata’: False,
    ‘isbn’: None,
    ‘italicize_common_cases’: True,
    ‘keep_ligatures’: False,
    ‘language’: None,
    ‘level1_toc’: None,
    ‘level2_toc’: None,
    ‘level3_toc’: None,
    ‘line_height’: 0.0,
    ‘linearize_tables’: False,
    ‘margin_bottom’: 5.0,
    ‘margin_left’: 5.0,
    ‘margin_right’: 5.0,
    ‘margin_top’: 5.0,
    ‘markup_chapter_headings’: True,
    ‘max_toc_links’: 50,
    ‘minimum_line_height’: 120.0,
    ‘mobi_file_type’: u’old’,
    ‘mobi_ignore_margins’: False,
    ‘mobi_keep_original_images’: False,
    ‘mobi_toc_at_start’: False,
    ‘no_chapters_in_toc’: False,
    ‘no_inline_navbars’: True,
    ‘no_inline_toc’: False,
    ‘output_profile’: <calibre.customize.profiles.KindlePaperWhite3Output object at 0x114812250>,
    ‘page_breaks_before’: u’/’,
    ‘personal_doc’: u'[PDOC]’,
    ‘prefer_author_sort’: False,
    ‘prefer_metadata_cover’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’/var/folders/tc/pqnqrvvd1k9d_t23g9gm45lh0000gn/C/calibre_3.41.3_tmp_ZxxZuk/W0WGJf.opf’,
    ‘remove_fake_margins’: True,
    ‘remove_first_image’: False,
    ‘remove_paragraph_spacing’: False,
    ‘remove_paragraph_spacing_indent_size’: 1.5,
    ‘renumber_headings’: True,
    ‘replace_scene_breaks’: u”,
    ‘search_replace’: ‘[]’,
    ‘series’: None,
    ‘series_index’: None,
    ‘share_not_sync’: False,
    ‘smarten_punctuation’: False,
    ‘sr1_replace’: None,
    ‘sr1_search’: None,
    ‘sr2_replace’: None,
    ‘sr2_search’: None,
    ‘sr3_replace’: None,
    ‘sr3_search’: None,
    ‘start_reading_at’: None,
    ‘subset_embedded_fonts’: False,
    ‘tags’: None,
    ‘timestamp’: None,
    ‘title’: None,
    ‘title_sort’: None,
    ‘toc_filter’: None,
    ‘toc_threshold’: 6,
    ‘toc_title’: None,
    ‘transform_css_rules’: ‘[]’,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: EPUB Input running
    on /var/folders/tc/pqnqrvvd1k9d_t23g9gm45lh0000gn/C/calibre_3.41.3_tmp_ZxxZuk/00hwEM.epub
    Python function terminated unexpectedly: 00hwEM.epub
    Traceback (most recent call last):
    File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 154, in main
    return run_entry_point()
    File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 114, in run_entry_point
    return getattr(pmod, func)()
    File “site-packages/calibre/utils/ipc/worker.py”, line 200, in main
    File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 42, in gui_convert_override
    File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 27, in gui_convert
    File “site-packages/calibre/ebooks/conversion/plumber.py”, line 1107, in run
    File “site-packages/calibre/customize/conversion.py”, line 245, in call
    File “site-packages/calibre/ebooks/conversion/plugins/epub_input.py”, line 289, in convert
    calibre.ebooks.DRMError: 00hwEM.epub

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.