Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 07:27 AM   #826
yoshi
Member
yoshi began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2024
Location: Japan
Device: Kindle Voyage & Kindle for PC
Right-click on "KFX Input.zip" in the Calibre installation folder, select "Restore previous versions," and if you're lucky, you can revert to an older version.
yoshi is offline   Reply With Quote
Old Yesterday, 10:02 AM   #827
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,870
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Overkatefinated View Post
I had zero issue using the previous version but now my books will no longer convert, they are stuck in the "KFX, MD" format.
If you see a format of MD in calibre after importing a book downloaded using Kindle for PC that indicates that you selected the wrong file for import. The correct main KFX file has an extension of ".azw". A supplemental metadata file found in the same folder has as extension of ".azw.md". Importing that will not work since calibre sees ".md" as an indication that the book is in markdown format instead of KFX.

This can be confusing because the Windows File Explorer does not show file extensions by default so a file with the extension ".azw.md" will appear there as ".azw". There is a setting in File Explorer that can be checked to show extensions. I recommend that be done to avoid this sort of problem in the future.
jhowell is offline   Reply With Quote
Old Yesterday, 10:09 AM   #828
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,870
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by mallomar View Post
Hi, I just imported a half-dozen books from my Kindle. Five of the six are fine, but when I go to convert the sixth to EPUB I get this error:

calibre, version 7.26.0
ERROR: KFX conversion failed: <p><b>Cannot convert Mrs. Caliban: A Novel</b><br><br>Exception('Book is incomplete. All of the KFX container files that make up the book must be combined into a KFX-ZIP file for successful conversion. (Missing containers CR!NMZERT4J5137Z6CAZW343TT7HKHW)')

I thought it might be an issue of the book not being fully downloaded but it shows as fully downloaded and displays without issue on my Kindle.
That error indicates there is in fact a file missing despite the book opening on the Kindle. KFX format is split into multiple files and Kindles will allow a book to be opened for reading before all of the files have downloaded in order to speed up the process.

Occasionally the supplemental files do not all download correctly. When that happens you need to remove the download from the device and re-download the book again.
jhowell is offline   Reply With Quote
Old Yesterday, 10:13 AM   #829
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,870
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Overkatefinated View Post
Well I have the same issue as PikeUK but with ALL books from the US. Is there a way to rollback to 2.19??
That error was fixed in version 2.20 of KFX Input so it very unlikely to be the same problem. Please post a copy of the conversion error log and I will review it.
jhowell is offline   Reply With Quote
Old Yesterday, 11:38 AM   #830
mallomar
Enthusiast
mallomar began at the beginning.
 
Posts: 36
Karma: 10
Join Date: May 2018
Device: Onyx Boox Note Air 2, Kindle Oasis 2
Quote:
Originally Posted by jhowell View Post
That error indicates there is in fact a file missing despite the book opening on the Kindle. KFX format is split into multiple files and Kindles will allow a book to be opened for reading before all of the files have downloaded in order to speed up the process.

Occasionally the supplemental files do not all download correctly. When that happens you need to remove the download from the device and re-download the book again.
Thanks, I removed the download and redownloaded the book and it worked. Bizarre that it showed as fully downloaded when it wasn't.

There are some books in which the book description on Amazon shows they reference pages from the printed book (what Amazon calls real pages), but there's no page map or page list I can see in the EPUB I converted from the KFX. Is it likely these also didn't download incorrectly, despite no errors, or is it something else?
mallomar is offline   Reply With Quote
Old Yesterday, 12:29 PM   #831
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,870
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by mallomar View Post
There are some books in which the book description on Amazon shows they reference pages from the printed book (what Amazon calls real pages), but there's no page map or page list I can see in the EPUB I converted from the KFX. Is it likely these also didn't download incorrectly, despite no errors, or is it something else?
If you did not receive an error then all of the files that make up the book were found.

Page numbers will be retained if present in KFX format. They might appear in different places in the EPUB based on how you did the conversion and the target EPUB version. Check for a pageList in toc.ncx if EPUB 2 or nav.xhtml if EPUB 3. If you cannot find it let me know the ASINs of some books that are missing page numbers and I will try to take a look. Posting a conversion log would also help since that will show the number of page entries found if any.
jhowell is offline   Reply With Quote
Old Yesterday, 12:36 PM   #832
akirby83
Junior Member
akirby83 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2025
Device: none
I've written a powershell script to convert 500+ kfx books in my Calibre library using the calibre-debug command line... the problem is it doesn't add the new files into my library, unlike the From KFX toolbar command in the GUI which does. Is there a command line argument I'm missing that will accomplish this?
akirby83 is offline   Reply With Quote
Old Yesterday, 01:10 PM   #833
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,870
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by akirby83 View Post
I've written a powershell script to convert 500+ kfx books in my Calibre library using the calibre-debug command line... the problem is it doesn't add the new files into my library, unlike the From KFX toolbar command in the GUI which does. Is there a command line argument I'm missing that will accomplish this?
After converting you can use the calibredb add command to add the result to your calibre library.
jhowell is offline   Reply With Quote
Old Yesterday, 01:38 PM   #834
valyent
Junior Member
valyent began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2025
Device: none
Hey @jhowell, thanks for making KFX Input!

I ran into a bug that preventing me from converting a few books. I was able to get around it by adding a `try/except` block around `name = self.strip_font_name(name)` in yj_to_epub_properties.py on line 2039.

Thanks again.
valyent is offline   Reply With Quote
Old Yesterday, 02:32 PM   #835
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,870
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by valyent View Post
Hey @jhowell, thanks for making KFX Input!

I ran into a bug that preventing me from converting a few books. I was able to get around it by adding a `try/except` block around `name = self.strip_font_name(name)` in yj_to_epub_properties.py on line 2039.

Thanks again.
Thanks for the bug report! Would you mind sharing the ASIN of some books that exhibit this problem? I would like to determine the root cause of the failure and see if there might be a better way to handle it.
jhowell is offline   Reply With Quote
Old Yesterday, 03:21 PM   #836
akirby83
Junior Member
akirby83 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2025
Device: none
Quote:
Originally Posted by jhowell View Post
After converting you can use the calibredb add command to add the result to your calibre library.
I eventually got it to work but I had to experiment. I have modified a lot of the titles in Calibre so Automerge was creating new entries instead of rolling them into the modified KFX version. The GUI version of your plugin seems to do this merge automatically but I had to experiment here. My solution was to import the book folder instead of the book file, treating everything inside as 1 book and ignoring kfx files. Not ignoring the KFX does seem to work while throwing errors that imply that it hasn't worked. This command worked for me, in case anyone is in my same situation:

calibredb add --automerge ignore -1 -- ignore *.kfx <folder that the book is in>
akirby83 is offline   Reply With Quote
Old Yesterday, 08:52 PM   #837
Overkatefinated
Junior Member
Overkatefinated began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2025
Device: Kindle Paperwhite Signature Edition 11th Gen
Quote:
Originally Posted by jhowell View Post
If you see a format of MD in calibre after importing a book downloaded using Kindle for PC that indicates that you selected the wrong file for import. The correct main KFX file has an extension of ".azw". A supplemental metadata file found in the same folder has as extension of ".azw.md". Importing that will not work since calibre sees ".md" as an indication that the book is in markdown format instead of KFX.

This can be confusing because the Windows File Explorer does not show file extensions by default so a file with the extension ".azw.md" will appear there as ".azw". There is a setting in File Explorer that can be checked to show extensions. I recommend that be done to avoid this sort of problem in the future.
So using the "Add Books" option in Calibre is the wrong way cause it has ALWAYS given me the KFX, MD after import. Someone on Reddit suggested a different way to import so I am gonna try that and see if it helps.
Overkatefinated is offline   Reply With Quote
Old Yesterday, 11:53 PM   #838
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 42,724
Karma: 163745634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Overkatefinated View Post
So using the "Add Books" option in Calibre is the wrong way cause it has ALWAYS given me the KFX, MD after import. Someone on Reddit suggested a different way to import so I am gonna try that and see if it helps.
If you enable see file extensions in File Explorer for Windows, you will see the real extensions. Alternatively you could import the file with the ASIN as the first part file name (B0D6RSYDSSN_EBOK.azw is a lot shorter than the ones that start CR!<whatever.azw.md)
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Conversion Input] Microsoft Doc Input Plugin igi Plugins 76 06-28-2019 05:47 AM
KFX conversion, transfer back to library issue. shoelesshunter Conversion 2 08-22-2017 07:40 PM
[Conversion Input] LaTeX Formulas Input Conversion Plugin sevyls Plugins 0 03-23-2015 06:52 AM
[Input Plugin] DOCX Input SauliusP. Plugins 42 06-05-2013 05:01 AM
Looking For MHT Input Conversion Plugin FlooseMan Dave Plugins 4 03-30-2010 06:52 PM


All times are GMT -4. The time now is 08:51 AM.


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