apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.56k stars 1.52k forks source link

Unable to remove DRM from Kindle books #980

Open freelikethebirds opened 4 years ago

freelikethebirds commented 4 years ago

I have only had this issue with these two books. I have tried removing the plugin and books and redownloading everything without luck. I don't know what more I can do so I really appreciate any help offered.

calibre, version 4.1.0 ERROR: Loading book failed: Failed to open the book at C:\Users\Andrea\Calibre Library\Howard Rosenthal\Encyclopedia of Counseling (945)\Encyclopedia of Counseling - Howard Rosenthal.azw. Click "Show details" for more info.

Traceback (most recent call last): File "site-packages\calibre\utils\ipc\simple_worker.py", line 290, in main File "site-packages\calibre\srv\render_book.py", line 668, in render File "site-packages\calibre\srv\render_book.py", line 206, in init File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 64, in extract_book File "site-packages\calibre\customize\conversion.py", line 246, in call File "site-packages\calibre\ebooks\conversion\plugins\mobi_input.py", line 47, 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 158, in check_for_drm DRMError: Encyclopedia of Counseling

calibre, version 4.1.0 ERROR: Loading book failed: Failed to open the book at C:\Users\Andrea\Calibre Library\Garry L. Landreth\Play Therapy (944)\Play Therapy - Garry L. Landreth.azw. Click "Show details" for more info.

Traceback (most recent call last): File "site-packages\calibre\utils\ipc\simple_worker.py", line 290, in main File "site-packages\calibre\srv\render_book.py", line 668, in render File "site-packages\calibre\srv\render_book.py", line 206, in init File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 64, in extract_book File "site-packages\calibre\customize\conversion.py", line 246, in call File "site-packages\calibre\ebooks\conversion\plugins\mobi_input.py", line 47, 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 158, in check_for_drm DRMError: Play Therapy

ElleKayEm commented 4 years ago

Here's how to get the log which will help us figure out what the problem is:

https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md#i-cannot-solve-my-problem-with-the-dedrm-plugin-and-now-i-need-to-post-a-log-how-do-i-do-that

freelikethebirds commented 4 years ago

calibre Debug log calibre 4.8 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.16+ Windows: ('10', '10.0.17134', 'SP0', u'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 27, 0) && Package KFX (from KFX Input) (1, 27, 0) && KFX metadata reader (from KFX Input) (1, 27, 0) && KFX Input (1, 27, 0) && Set KFX metadata (from KFX Output) (1, 37, 0) && KFX Output (1, 37, 0) calibre 4.8 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.16+ Windows: ('10', '10.0.17134', 'SP0', u'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 27, 0) && Package KFX (from KFX Input) (1, 27, 0) && KFX metadata reader (from KFX Input) (1, 27, 0) && KFX Input (1, 27, 0) && Set KFX metadata (from KFX Output) (1, 37, 0) && KFX Output (1, 37, 0) Turning on automatic hidpi scaling devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 100.861627907 x 100.55257732 Using calibre Qt style: True [0.00] Starting up... [0.00] Showing splash screen... [0.50] splash screen shown [0.50] Initializing db... [0.53] db initialized [0.53] Constructing main UI... [2.44] main UI initialized... [2.44] Hiding splash screen [44.59] splash screen hidden [44.59] Started up in 44.59 seconds with 803 books Worker Launch took: 1.19099998474 stdout+stderr from file dialog helper: ['', ''] piped data from file dialog helper: ['\xdd\x88a\x89\x12#\x8f\xca\xe1K\xb1\x1e\x953%A\xac\xbdq\x04\xdc^\x15\xd2\xcbd\xe1\n\xaf\xf7\xddq', 'C:\Users\Andrea\Documents\My Kindle Content\B00JWF19W2_EBOK.azw', 'C:\Users\Andrea\Documents\My Kindle Content\B06XFZ2322_EBOK.azw', 'C:\Users\Andrea\Documents\My Kindle Content\B007ZZ1F20_EBOK.azw', 'C:\Users\Andrea\Documents\My Kindle Content\B071NDL5K5_EBOK.azw'] Gather KFX-ZIP (from KFX Input) 1.27.0: Importing C:\Users\Andrea\Documents\My Kindle Content\B06XFZ2322_EBOK.azw Gather KFX-ZIP (from KFX Input) 1.27.0: Importing C:\Users\Andrea\Documents\My Kindle Content\B007ZZ1F20_EBOK.azw Gather KFX-ZIP (from KFX Input) 1.27.0: Importing C:\Users\Andrea\Documents\My Kindle Content\B00JWF19W2_EBOK.azw Gather KFX-ZIP (from KFX Input): File is not KFX format Gather KFX-ZIP (from KFX Input): File is not KFX format Gather KFX-ZIP (from KFX Input): File is not KFX format Gather KFX-ZIP (from KFX Input) 1.27.0: Importing C:\Users\Andrea\Documents\My Kindle Content\B071NDL5K5_EBOK.azw Gather KFX-ZIP (from KFX Input): File is not KFX format Added Grim Holiday (Aisling Grimlock Book 6) to db in: 3.3 Added Play Therapy to db in: 5.3 Added Encyclopedia of Counseling to db in: 3.7 Added 3 books in 18.0 seconds Worker Launch took: 0.444000005722 Worker Launch took: 0.443000078201 Worker Launch took: 0.490000009537

ElleKayEm commented 4 years ago

You don't have the DeDRM plugin loaded.

freelikethebirds commented 4 years ago

I've tried loading it several times. What do I need to do to add it?

freelikethebirds commented 4 years ago

I tried redownloading the plugin and adding it. I got the same error

calibre Debug log calibre 4.8 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.16+ Windows: ('10', '10.0.17134', 'SP0', u'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 27, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 27, 0) && KFX metadata reader (from KFX Input) (1, 27, 0) && KFX Input (1, 27, 0) && Set KFX metadata (from KFX Output) (1, 37, 0) && KFX Output (1, 37, 0) calibre 4.8 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.16+ Windows: ('10', '10.0.17134', 'SP0', u'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 27, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 27, 0) && KFX metadata reader (from KFX Input) (1, 27, 0) && KFX Input (1, 27, 0) && Set KFX metadata (from KFX Output) (1, 37, 0) && KFX Output (1, 37, 0) Turning on automatic hidpi scaling devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 100.861627907 x 100.55257732 Using calibre Qt style: True [0.00] Starting up... [0.00] Showing splash screen... [0.64] splash screen shown [0.64] Initializing db... [0.74] db initialized [0.74] Constructing main UI... [3.55] main UI initialized... [3.55] Hiding splash screen [5.67] splash screen hidden [5.67] Started up in 5.67 seconds with 803 books stdout+stderr from file dialog helper: ['', ''] piped data from file dialog helper: ["!\x06st8W!\xc4'M'\xf2\xf7\xd6\xd1\xf5\xa7\x8e\x89@J%\xcf\x17\x90\x95\xbc3\xc1\xea\x8bP", 'C:\Users\Andrea\Documents\My Kindle Content\B06XFZ2322_EBOK.azw', 'C:\Users\Andrea\Documents\My Kindle Content\B007ZZ1F20_EBOK.azw', 'C:\Users\Andrea\Documents\My Kindle Content\B071NDL5K5_EBOK.azw'] Gather KFX-ZIP (from KFX Input) 1.27.0: Importing C:\Users\Andrea\Documents\My Kindle Content\B06XFZ2322_EBOK.azw Gather KFX-ZIP (from KFX Input): File is not KFX format Gather KFX-ZIP (from KFX Input) 1.27.0: Importing C:\Users\Andrea\Documents\My Kindle Content\B007ZZ1F20_EBOK.azw Gather KFX-ZIP (from KFX Input): File is not KFX format Gather KFX-ZIP (from KFX Input) 1.27.0: Importing C:\Users\Andrea\Documents\My Kindle Content\B071NDL5K5_EBOK.azw Gather KFX-ZIP (from KFX Input): File is not KFX format DeDRM v6.6.3: Trying to decrypt B06XFZ2322_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: Grim Holiday (Aisling Grimlock Book 6) Got DSN key from database default_key Found 4 keys to try after 0.4 seconds Crypto Type is: 2 File is encoded with PID tyX6o4H3KY. Decrypting. Please wait . . . . . . done Decryption succeeded after 0.4 seconds DeDRM v6.6.3: Finished after 0.4 seconds DeDRM v6.6.3: Trying to decrypt B007ZZ1F20_EBOK.azw Using Library AlfCrypto DLL/DYLIB/SO DeDRM v6.6.3: Trying to decrypt B071NDL5K5_EBOK.azw MobiDeDrm v0.42. Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al. Using Library AlfCrypto DLL/DYLIB/SO Decrypting Kindle Format 8 ebook: Play Therapy Got DSN key from database default_key Found 4 keys to try after 0.1 seconds Crypto Type is: 2 DeDRM v6.6.3: Failed to decrypt with error: Cannot decode library or rented ebooks. DeDRM v6.6.3: Looking for new default Kindle Key after 0.1 seconds searching for kinfoFiles in C:\Users\Andrea\AppData\Local Found K4PC 1.9+ kinf2011 file: C:\Users\Andrea\AppData\Local\Amazon\Kindle\storage.kinf2011 MobiDeDrm v0.42. Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: Encyclopedia of Counseling Got DSN key from database default_key Found 4 keys to try after 0.1 seconds Crypto Type is: 2 DeDRM v6.6.3: Failed to decrypt with error: Cannot decode library or rented ebooks. DeDRM v6.6.3: Looking for new default Kindle Key after 0.1 seconds searching for kinfoFiles in C:\Users\Andrea\AppData\Local Found K4PC 1.9+ kinf2011 file: C:\Users\Andrea\AppData\Local\Amazon\Kindle\storage.kinf2011 Decrypted key file using IDString '1388030022' and UserName '416e64726561' 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 Decrypted key file using IDString '1388030022' and UserName '416e64726561' 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 Added Grim Holiday (Aisling Grimlock Book 6) to db in: 1.7 Added Play Therapy to db in: 1.7 Added Encyclopedia of Counseling to db in: 2.1 Added 3 books in 7.2 seconds Worker Launch took: 0.205999851227 Worker Launch took: 0.262000083923

ElleKayEm commented 4 years ago

From the log:

Failed to decrypt with error: Cannot decode library or rented ebooks.

gannon345 commented 4 years ago

I'm having the same issue with owned books. My books will copy to Calibre library but can't launch in the viewer or convert. Maybe this log will help:

calibre Debug log calibre 4.8 embedded-python: True is64bit: True Linux-5.3.0-26-generic-x86_64-with-debian-buster-sid Linux ('64bit', 'ELF') ('Linux', '5.3.0-26-generic', '#28-Ubuntu SMP Wed Dec 18 05:37:46 UTC 2019') Python 2.7.16 Linux: ('debian', 'buster/sid', '') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 27, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 27, 0) && KFX metadata reader (from KFX Input) (1, 27, 0) && KFX Input (1, 27, 0) calibre 4.8 embedded-python: True is64bit: True Linux-5.3.0-26-generic-x8664-with-debian-buster-sid Linux ('64bit', 'ELF') ('Linux', '5.3.0-26-generic', '#28-Ubuntu SMP Wed Dec 18 05:37:46 UTC 2019') Python 2.7.16 Linux: ('debian', 'buster/sid', '') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 27, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 27, 0) && KFX metadata reader (from KFX Input) (1, 27, 0) && KFX Input (1, 27, 0) Turning on automatic hidpi scaling devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 91.8418079096 x 91.745819398 Using calibre Qt style: True [0.00] Starting up... [0.00] Showing splash screen... [0.06] splash screen shown [0.06] Initializing db... [0.13] db initialized [0.13] Constructing main UI... Looking for desktop notifier support from: org.freedesktop.Notifications org.freedesktop.Notifications found in 0.0 seconds [0.74] main UI initialized... [0.74] Hiding splash screen [13.25] splash screen hidden [13.25] Started up in 13.25 seconds with 718 books DeDRM v6.6.3: Trying to decrypt A Little Hatred 1 (The Age of Madness).azw3 Using Library AlfCrypto DLL/DYLIB/SO MobiDeDrm v0.42. Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al. Decrypting Kindle Format 8 ebook: A Little Hatred: 1 (The Age of Madness) Found 0 keys to try after 0.0 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 0.0 seconds DeDRM v6.6.3: Running kindlekey.py under Wine DeDRM v6.6.3: Command line: 'WINEPREFIX="/home/tk" wine python.exe "/home/tk/.config/calibre/plugins/DeDRM/libraryfiles/kindlekey.py" "/home/tk/.config/calibre/plugins/DeDRM/libraryfiles/winekeysdir"' wine: cannot find L"C:\windows\system32\python.exe" DeDRM v6.6.3: Found and decrypted 0 key files 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 "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 1.1 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/DeDRM_tools/blob/master/FAQs.md Added A Little Hatred: 1 (The Age of Madness) to db in: 0.1 Added 1 books in 1.5 seconds Worker Launch took: 0.0382959842682

ElleKayEm commented 4 years ago

@gannon345 Looks like a book from the website for "download and transfer via USB". For those, you need to choose an E-ink Kindle (not a Fire) for the device and enter its serial number into the DeDRM plugin customization.

gannon345 commented 4 years ago

Yeah, @ElleKayEm I'm a dummy. I updated to Calibre 4.8 this morning and it looks somehow it wiped out my Kindle serial from the DeDRM plugin. Added it back and now it's working. Realized on reading that log and seeing the "Found 0 keys to try after 0.0 seconds" part.

Sorry for the confusion.

arthrfrts commented 4 years ago

I've installed both DeDRM and Obok DeDRM (and added my Kindle serial number to deDRM settings), but I still can't convert my ebooks. It seems that my Calibre install doesn't find my plugins?

calibre Registo de Depuração
calibre 4.8  embedded-python: True is64bit: True
Darwin-19.2.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '19.2.0', 'Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64')
Python 2.7.16
OSX: ('10.15.2', ('', '', ''), 'x86_64')
Interface language: pt
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 27, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 27, 0) && KFX metadata reader (from KFX Input) (1, 27, 0) && KFX Input (1, 27, 0) && Obok DeDRM (6, 5, 4)
calibre 4.8  embedded-python: True is64bit: True
Darwin-19.2.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '19.2.0', 'Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64')
Python 2.7.16
OSX: ('10.15.2', ('', '', ''), 'x86_64')
Interface language: pt
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 27, 0) && DeDRM (6, 6, 3) && Package KFX (from KFX Input) (1, 27, 0) && KFX metadata reader (from KFX Input) (1, 27, 0) && KFX Input (1, 27, 0) && Obok DeDRM (6, 5, 4)
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 113.500001705 x 113.500001705
Using calibre Qt style: True
[0.00] Starting up...
[0.03] Showing splash screen...
[0.33] splash screen shown
[0.33] Initializing db...
[0.35] db initialized
[0.35] 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
[2.00] main UI initialized...
[2.00] Hiding splash screen
Gather KFX-ZIP (from KFX Input) 1.27.0: Importing /Volumes/Kindle 1/documents/68 contos de Raymond Carver (Portuguese Edition)_B01ABZM9UM.kfx
Gather KFX-ZIP (from KFX Input): Gathered 4 file(s) as /var/folders/cn/51ctb5hd06z462l5dszmmpcr0000gn/C/calibre_4.8.0_tmp_KY_BAh/tVfWkr.kfx-zip
DeDRM v6.6.3: Trying to decrypt tVfWkr.kfx-zip
Using Library AlfCrypto Python
Decrypting KFX-ZIP ebook: tVfWkr
Found 1 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
Package KFX (from KFX Input) 1.27.0: Packaging /var/folders/cn/51ctb5hd06z462l5dszmmpcr0000gn/C/calibre_4.8.0_tmp_KY_BAh/tVfWkr.kfx-zip
Processing container: 68 contos de Raymond Carver (Portuguese Edition)_B01ABZM9UM.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 21, in run
  File "calibre_plugins.kfx_input.package_filetype", line 33, in run_kfx
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 87, in convert_to_single_kfx
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 160, in decode_book
  File "calibre_plugins.kfx_input.kfxlib.yj_book", line 267, in get_container
KFXDRMError: Book container 68 contos de Raymond Carver (Portuguese Edition)_B01ABZM9UM.kfx has DRM and cannot be converted
KFX metadata reader (from KFX Input) activated for /var/folders/cn/51ctb5hd06z462l5dszmmpcr0000gn/C/calibre_4.8.0_tmp_KY_BAh/UmxY6M_add_books/0/68 contos de Raymond Carver (Portuguese Edition)_B01ABZM9UM.kfx-zip

{u'bsd_drives': {u'main': u'/dev/disk6s1'},
 u'drives': {u'main': '/Volumes/Kindle 1'},
 u'mount_map': {'/dev/disk1s1': '/System/Volumes/Data',
                '/dev/disk1s3': '/Volumes/Recovery',
                '/dev/disk1s4': '/private/var/vm',
                '/dev/disk1s5': '/',
                '/dev/disk3s1': '/Volumes/Coltrane',
                '/dev/disk6s1': '/Volumes/Kindle 1',
                'devfs': '/dev',
                'kbfs@kbfuse0': '/Volumes/Keybase (arthr)',
                'keybase-redirector': '/Volumes/Keybase',
                'map auto_home': '/System/Volumes/Data/home'}}
Job: 0 Obter informação sobre o dispositivo started
DeviceJob: 0 Obter informação sobre o dispositivo done, calling callback
DeviceJob: 0 Obter informação sobre o dispositivo callback returned
Job: 1 Definir informação da biblioteca started
DeviceJob: 1 Definir informação da biblioteca done, calling callback
DeviceJob: 1 Definir informação da biblioteca callback returned
Job: 2 Listar os livros presentes no dispositivo started
DEBUG:    0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
DEBUG:    0.0 USBMS: dirs are: /Volumes/Kindle 1/ documents
DEBUG:    0.0 USBMS: scan from root False /Volumes/Kindle 1/documents
DEBUG:    0.1 USBMS: count found in cache: 33, count of files in metadata: 33, need_sync: False
DEBUG:    0.1 USBMS: Finished fetching list of books from device. oncard= None
DEBUG:    0.1 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG:    0.1 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
DeviceJob: 2 Listar os livros presentes no dispositivo done, calling callback
DeviceJob: metadata_downloaded: Starting set_books_in_library
DeviceJob: set_books_in_library: books to process= 33
DeviceJob: set_books_in_library finished: time= 0.00190591812134
DeviceJob: metadata_downloaded: updating views
DeviceJob: metadata_downloaded: syncing
DeviceJob: metadata_downloaded: refreshing ondevice
DeviceJob: metadata_downloaded: sending metadata_available signal
DeviceJob: 2 Listar os livros presentes no dispositivo callback returned
Job: 0 Obter informação sobre o dispositivo finished
Sem detalhes disponíveis.
Job: 1 Definir informação da biblioteca finished
Sem detalhes disponíveis.
Job: 2 Listar os livros presentes no dispositivo finished
Sem detalhes disponíveis.
[29.67] splash screen hidden
[29.67] Started up in 29.67 seconds with 0 books
Added 68 contos de Raymond Carver to db in: 0.1
Added 1 books in 0.9 seconds
Worker Launch took: 0.207711935043
Job: 3 Converter livros 1 de 1 (68 contos de Raymond Carver) finished
Converter livros 1 de 1 (68 contos de Raymond Carver)
    Conversion options changed from defaults:
      output_profile: u'kindle'
      read_metadata_from_opf: u'/var/folders/cn/51ctb5hd06z462l5dszmmpcr0000gn/C/calibre_4.8.0_tmp_KY_BAh/gvW716.opf'
      verbose: 2
      cover: u'/var/folders/cn/51ctb5hd06z462l5dszmmpcr0000gn/C/calibre_4.8.0_tmp_KY_BAh/3fNc6J.jpeg'
    Resolved conversion options
    calibre version: 4.8.0
    {'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'/var/folders/cn/51ctb5hd06z462l5dszmmpcr0000gn/C/calibre_4.8.0_tmp_KY_BAh/3fNc6J.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 0x110835890>,
     '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.KindleOutput object at 0x110835f50>,
     '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/cn/51ctb5hd06z462l5dszmmpcr0000gn/C/calibre_4.8.0_tmp_KY_BAh/gvW716.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 /var/folders/cn/51ctb5hd06z462l5dszmmpcr0000gn/C/calibre_4.8.0_tmp_KY_BAh/YkTG9K.kfx-zip
    Software versions: KFX Input 1.27.0, calibre 4.8, Darwin-19.2.0-x86_64-i386-64bit
    KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290
    Converting /var/folders/cn/51ctb5hd06z462l5dszmmpcr0000gn/C/calibre_4.8.0_tmp_KY_BAh/YkTG9K.kfx-zip
    Processing container: 68 contos de Raymond Carver (Portuguese Edition)_B01ABZM9UM.kfx
    Traceback (most recent call last):
      File "calibre_plugins.kfx_input.__init__", line 99, in convert
      File "calibre_plugins.kfx_input.__init__", line 198, in convert_from_kfx
      File "calibre_plugins.kfx_input.kfxlib.yj_book", line 106, in convert_to_epub
      File "calibre_plugins.kfx_input.kfxlib.yj_book", line 160, in decode_book
      File "calibre_plugins.kfx_input.kfxlib.yj_book", line 267, in get_container
    KFXDRMError: Book container 68 contos de Raymond Carver (Portuguese Edition)_B01ABZM9UM.kfx has DRM and cannot be converted
    Python function terminated unexpectedly: This book has DRM!
    Traceback (most recent call last):
      File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 187, in main
        return run_entry_point()
      File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 121, in run_entry_point
        return getattr(pmod, func)()
      File "site-packages/calibre/utils/ipc/worker.py", line 209, in main
      File "site-packages/calibre/gui2/convert/gui_conversion.py", line 43, in gui_convert_override
      File "site-packages/calibre/gui2/convert/gui_conversion.py", line 28, in gui_convert
      File "site-packages/calibre/ebooks/conversion/plumber.py", line 1110, in run
      File "site-packages/calibre/customize/conversion.py", line 246, in __call__
      File "calibre_plugins.kfx_input.__init__", line 104, in convert
    calibre.ebooks.DRMError: This book has DRM!
ElleKayEm commented 4 years ago

If you have an E-ink Kindle (not a Fire), download the book from the website for "download and transfer via USB" selecting that Kindle for the device.