Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-26-2017, 08:28 AM   #181
abogomolov
Junior Member
abogomolov began at the beginning.
 
Posts: 4
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
It was working with version 1.6.0 and KP3.7.1
abogomolov is offline   Reply With Quote
Advert
Old 03-26-2017, 09:29 AM   #182
jhowell
Wizard
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: 1,311
Karma: 12008533
Join Date: Nov 2011
Location: Florida
Device: iPad Air 2, Kindle PW2, Nexus 7, Fire 5th Gen
Quote:
Originally Posted by abogomolov View Post
Hi! I guess, new plugin version is incompatible with MacOS?
I get this error: ...
Sorry about that.

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
jhowell is offline   Reply With Quote
Old 03-26-2017, 06:01 PM   #183
Crhis
Enthusiast
Crhis began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Mar 2008
Location: UK
Device: Kindle Oasis, iPhone 7 Plus
Quote:
Originally Posted by jhowell View Post
Sorry about that.

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.
Works again with the plugin attached above, thanks!
Crhis is offline   Reply With Quote
Old 03-26-2017, 06:31 PM   #184
abogomolov
Junior Member
abogomolov began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2017
Device: Kindle Paperwhite
It works fine now, thank you!
abogomolov is offline   Reply With Quote
Old 03-26-2017, 06:55 PM   #185
jhowell
Wizard
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: 1,311
Karma: 12008533
Join Date: Nov 2011
Location: Florida
Device: iPad Air 2, Kindle PW2, Nexus 7, Fire 5th Gen
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")
jhowell is offline   Reply With Quote
Old 04-11-2017, 05:18 PM   #186
HowlerX
Junior Member
HowlerX began at the beginning.
 
Posts: 8
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;}
This plug-in will then move everything (text, etc.) that shows up after the page break at the very top of the new page disregarding any rules or spacing. For example, the text after my page break has a "margin-top: 25%" centered text but instead it shows up at the very top of the page. Kindle Previewer handles it fine btw, but it's one of those books that replaces double quotation marks with the weird symbols. (Any idea how I can fix these books in calibre, btw?)
HowlerX is offline   Reply With Quote
Old 04-11-2017, 06:32 PM   #187
jhowell
Wizard
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: 1,311
Karma: 12008533
Join Date: Nov 2011
Location: Florida
Device: iPad Air 2, Kindle PW2, Nexus 7, Fire 5th Gen
Quote:
Originally Posted by HowlerX View Post
For example, the text after my page break has a "margin-top: 25%" centered text but instead it shows up at the very top of the page.
There can be issues using page-break-before along with margin-top. See this thread for more information.

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.
jhowell is offline   Reply With Quote
Old 04-11-2017, 09:27 PM   #188
HowlerX
Junior Member
HowlerX began at the beginning.
 
Posts: 8
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.
HowlerX is offline   Reply With Quote
Old 04-20-2017, 03:38 PM   #189
gers1978
Addict
gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.
 
Posts: 371
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
gers1978 is offline   Reply With Quote
Old 04-20-2017, 05:28 PM   #190
jhowell
Wizard
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: 1,311
Karma: 12008533
Join Date: Nov 2011
Location: Florida
Device: iPad Air 2, Kindle PW2, Nexus 7, Fire 5th Gen
Quote:
Originally Posted by gers1978 View Post
Kindle Previewer error: Error(YJConvValidator):E120022: Large Data Table not supported.No. of characters=1285, No. of rows=51, No. of cells=204
That is a limitation of the Kindle Previewer, as documented in the first post of this thread under "Dealing with Conversion Errors".

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.)
jhowell is offline   Reply With Quote
Old Today, 08:31 AM   #191
hidden.platypus
Connoisseur
hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.hidden.platypus can program the VCR without an owner's manual.
 
hidden.platypus's Avatar
 
Posts: 84
Karma: 190508
Join Date: May 2014
Device: Android
Quote:
Originally Posted by jhowell View Post
That is a limitation of the Kindle Previewer, as documented in the first post of this thread under "Dealing with Conversion Errors".
Hi jhowell,

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?
hidden.platypus is offline   Reply With Quote
Old Today, 09:11 AM   #192
jhowell
Wizard
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: 1,311
Karma: 12008533
Join Date: Nov 2011
Location: Florida
Device: iPad Air 2, Kindle PW2, Nexus 7, Fire 5th Gen
Quote:
Originally Posted by hidden.platypus View Post
Hi jhowell,

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?
I do not know if it will work with 3.10 and I will not have time to try it until next week.

I also do not know where you can get older versions. Sorry.
jhowell is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Conversion Output] KePub Output Plugin jgoguen Plugins 259 04-21-2017 10:42 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


All times are GMT -4. The time now is 09:31 PM.


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