03-26-2017, 08:28 AM | #181 |
Junior Member
Posts: 7
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
|
Hi! I guess, new plugin version is incompatible with MacOS?
I get this error: Code:
Converting "/var/folders/fv/8tckks8n51vdvvgcfq4t2fwr0000gn/C/calibre_2.82.0_tmp__dFi37/V0y9VX.epub" to KDF/KPF Python function terminated unexpectedly: encode() argument 1 must be string, not None Preparing EPUB for conversion 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 195, in main File "site-packages/calibre/gui2/convert/gui_conversion.py", line 33, in gui_convert_override File "site-packages/calibre/gui2/convert/gui_conversion.py", line 26, in gui_convert File "site-packages/calibre/ebooks/conversion/plumber.py", line 1238, in run File "calibre_plugins.kfx_output.__init__", line 70, in convert File "calibre_plugins.kfx_output.__init__", line 117, in convert_from_epub File "calibre_plugins.kfx_output.kfxlib.previewer_kpf", line 106, in epub_to_kpf File "calibre_plugins.kfx_output.kfxlib.previewer_kpf", line 160, in exec_previewer File "calibre_plugins.kfx_output.kfxlib.misc", line 319, in locale_encode TypeError: encode() argument 1 must be string, not None |
03-26-2017, 09:29 AM | #182 | |
Grand Sorcerer
Posts: 6,495
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
I do not have a Mac and so I am unable to test changes on that platform. I have attached a new version of the plugin to this post, which I hope will fix the problem. If someone using a Mac could download and install it and report back it would be helpful. Edit: Problem resolved. Attachment removed. Last edited by jhowell; 03-26-2017 at 06:54 PM. Reason: remove attachment |
|
03-26-2017, 06:01 PM | #183 | |
Enthusiast
Posts: 26
Karma: 10
Join Date: Mar 2008
Location: UK
Device: Kindle Oasis, iPhone 7 Plus
|
Quote:
|
|
03-26-2017, 06:31 PM | #184 |
Junior Member
Posts: 7
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
|
It works fine now, thank you!
|
03-26-2017, 06:55 PM | #185 |
Grand Sorcerer
Posts: 6,495
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Version 1.7.1 - 26 Mar 2017
Fix bug when running under MacOS introduced in version 1.7.0. (Fixes "TypeError: encode() argument 1 must be string, not None") |
04-11-2017, 05:18 PM | #186 |
Enthusiast
Posts: 28
Karma: 10
Join Date: Aug 2016
Device: Kindle Voyage
|
Annoying quirk discovered with the plug-in. Some epubs use a soft page break CSS:
Code:
.pageBreak {page-break-before: always;} |
04-11-2017, 06:32 PM | #187 | |
Grand Sorcerer
Posts: 6,495
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
I don't have enough to go on to determine what, if anything, is going wrong. I am not going to loook into this further unless you can provide a sample file along with a description of how you think it should look and what is wrong when the plugin converts it. Note: Even if you provide an example, if the problem lies outside of the plugin I won't be able to help. The plugin uses calibre to convert the source format to EPUB. (It does that even for books already in EPUB format, since it fixes many potential problems.) Then it uses Kindle Previewer 3 to convert the result to KFX. The plugin itself does very little manipulation of the source EPUB, nothing dealing with styles. One more thing: If your EPUB has incorrect characters after conversion if can often be fixed using the "Encode HTML in UTF-8" option of the "Modify ePub" plugin. Do that before conversion to Kindle formats. Last edited by jhowell; 04-11-2017 at 06:57 PM. |
|
04-11-2017, 09:27 PM | #188 |
Enthusiast
Posts: 28
Karma: 10
Join Date: Aug 2016
Device: Kindle Voyage
|
Thanks for your prompt reply. I've been playing with different files and getting different results. It's most probably a quirk in Kindle Previewer because I get inconsistent results just by allowing the Previewer to encode the epub and seeing the results versus passing the epub through Calibre/KFX plugin. I just resorted to splitting the html file to get the desired result. Want it to look like the actual books as much as possible.
Many thanks for the tip re: "Modify ePub" plugin. |
04-20-2017, 03:38 PM | #189 |
Addict
Posts: 392
Karma: 1008414
Join Date: Jun 2011
Device: Kindle
|
Getting an error now in Calibre 2.83 and Kindle Previewer 3.9 beta on macOS Sierra 10.12:
calibre, version 2.83.0 ERROR: KFX conversion failed: <p>Big Boys' Rules: The SAS and the Secret Struggle Against the IRA<br><br><b>Kindle Previewer error:</b> Error(YJConvValidator):E120022: Large Data Table not supported.No. of characters=1285, No. of rows=51, No. of cells=204</p> Was also happening in KP 3.8 beta |
04-20-2017, 05:28 PM | #190 | |
Grand Sorcerer
Posts: 6,495
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
There is a limit on the size of HTML tables allowed by the Previewer. If you want to convert this book you will need to edit and reformat it to split up or remove any large tables. (Unfortunately, the maximum allowed table size is undocumented.) |
|
04-27-2017, 08:31 AM | #191 | |
Connoisseur
Posts: 89
Karma: 190508
Join Date: May 2014
Device: Android
|
Quote:
Does this plugin still workon version 3.10 Amazon updated it yesterday. If not, do you happen to have an installer for version 3.9? |
|
04-27-2017, 09:11 AM | #192 | |
Grand Sorcerer
Posts: 6,495
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
I also do not know where you can get older versions. Sorry. |
|
04-28-2017, 01:35 PM | #193 |
Junior Member
Posts: 7
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
|
|
04-28-2017, 03:34 PM | #194 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2017
Device: Paperwhite 3
|
Hi,
Paperwhite 3 on a German Win7/calibre 2.83, kindle previewer 3.9.0. Trying to convert the Frankenstein-book, I get this error. Spoiler:
Conversion works via kindle previewer. Any idea? |
04-28-2017, 09:40 PM | #195 | |
Grand Sorcerer
Posts: 6,495
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
I suspect the problem relates to non-ascii characters in the user profile path. I tried to make the plugin support this, but it may not be working properly. |
|
Tags |
kfx, linux, wine |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Conversion Output] KePub Output Plugin | jgoguen | Plugins | 551 | 07-18-2023 06:22 AM |
Conversion output plugins? | jgoguen | Development | 14 | 08-10-2013 11:19 AM |
Output file name after conversion | dbellefuil | Calibre | 2 | 06-14-2013 04:40 PM |
catalogue builder output columns are not in the same order in the output | KWhytte | Library Management | 5 | 12-04-2012 02:03 AM |
Conversion output folders | TechieLady | Conversion | 6 | 01-19-2012 02:49 AM |