Open vee-eye-en-kay opened 8 months ago
I received the same error (on a different book), and like you, the error always appeared after the downloading was complete and the extraction process started. I never found a solution, but I was able to successfully grab the book by using the less elegant method discussed in a different thread (use an Android emulator, import into Calibre, then use the terminal to extract). Obviously that doesn't solve this problem, but I was able to grab the book I was after!
Edit: oops... this thread: https://github.com/noDRM/DeDRM_tools/discussions/440
I haven't yet encountered this myself. Assuming the above comment is true, I'm not sure why comix would be failing here when KFX Input doesn't. KFX Input's version history mentions addressing similar issues in v1.18.0 and v1.31.0.
In the meantime, if the problem is only with extraction, you should at least be able to avoid setting up an Android emulator. Use the --keep_temp
arg mentioned in the README. After downloading and presumably failing extraction, you should have an output folder with the KFX files inside (e.g. comix/output/B0BPX4YJ8V
). These can be imported to calibre after adding the device_id
from state.json
to DeDRM_tools.
For what it's worth, I ran into this issue on a few books now. Luckily, on failure, even without --keep_temp
, the tool leaves the downloaded files in the temp folder. I was able to import the KFX into Calibre by adding just one of the KFX files in the temp folder.
For each case of the first issue, I hit a second issue using Calibre to convert the KFX due to noDRM/DeDRM_tools#1818. Maybe related? Edit: I realize now Calibre simply does not support converting fixed-layout KFX books directly, i.e. comics.
To work around the Calibre conversion limitations, I was able to use the KFX Input plugin CLI, as the conversion error message suggests.
These were the affected ASIN I have encountered so far:
Weirdly, books in the same series worked fine, so it seems kinda random. Hopefully this context is helpful.
For what it's worth, I ran into this issue on a few books now. Luckily, on failure, even without
--keep_temp
, the tool leaves the downloaded files in the temp folder. I was able to import the KFX into Calibre by adding just one of the KFX files in the temp folder.For each case of the first issue, I hit a second issue using Calibre to convert the KFX due to noDRM/DeDRM_tools#1818. ~Maybe related?~ Edit: I realize now Calibre simply does not support converting fixed-layout KFX books directly, i.e. comics.
To work around the Calibre conversion limitations, I was able to use the KFX Input plugin CLI, as the conversion error message suggests.
These were the affected ASIN I have encountered so far:
- B01GT6BLX8
- B00F3HK6TA
- B071NX66W6
Weirdly, books in the same series worked fine, so it seems kinda random. Hopefully this context is helpful.
can you explain how you did this? I am having the same issue now
can you explain how you did this? I am having the same issue now
If you have Calibre and the KFX Input plug-in installed on your computer, then you should be able to use the command line to decrypt the book into any supported format of your choosing.
Take a look at the Command Line Interface section here.
As a tip, you only need to specify any one single kfx, azw, etc. file from the folder that contains the files, and it will properly detect the related files and decrypt them into a single book.
This has worked mostly well with the books I have attempted, except for this one: B0BPX4YJ8V
I have tried to delete the output folder it created, then retrying the process from the start, but continue to get the same error each time. It seems to always happen after the "download" gets to 97% and begins to extract, then error.
Other books before this one and after, have not received any errors on my end. My script knowledge is extremely limited so I don't know how to troubleshoot.