View Single Post
Old 07-27-2022, 02:04 PM   #1277
resdinwel
Junior Member
resdinwel began at the beginning.
 
resdinwel's Avatar
 
Posts: 2
Karma: 10
Join Date: Jul 2022
Device: Kindle
Hi, I encountered the following error when trying converting vertical Chinese ebooks:
Code:
Traceback (most recent call last):
  File "calibre_plugins.kfx_output.kfxlib.original_source_epub", line 262, in prepare_for_previewer
  File "calibre_plugins.kfx_output.kfxlib.original_source_epub", line 540, in prepare_opf
TypeError: JobLog.info() takes 2 positional arguments but 3 were given
It seems like a typo:
Code:
--- "KFX Output/kfxlib/original_source_epub.py"
+++ test.py
@@ -540 +540 @@
-                        log.info("Changed EPUB language from '%s' to 'ja' for vertical text conversion", lang.text)
+                        log.info("Changed EPUB language from '%s' to 'ja' for vertical text conversion" % lang.text)
Thank you.
resdinwel is offline   Reply With Quote