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 08-02-2024, 10:55 AM   #556
Flip35
Junior Member
Flip35 began at the beginning.
 
Posts: 2
Karma: 12
Join Date: Jul 2024
Device: Kobo Libra Colour
Quote:
Originally Posted by 7hir7een View Post
I unknowingly updated this plugin and now all of my kepub conversions are failing. Is there any way the previous version could be posted for download?
I found it on jgoguen github page.
Attached Files
File Type: zip KePub.Output.zip (42.2 KB, 146 views)
File Type: zip KePub.Input.zip (40.9 KB, 121 views)
Flip35 is offline   Reply With Quote
Old 08-02-2024, 11:16 AM   #557
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,082
Karma: 2178847
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Version 3.6.9 should be offered by calibre within the next hour or so to fix this ��
jgoguen is offline   Reply With Quote
Old 08-03-2024, 12:52 AM   #558
liquidsgi
Junior Member
liquidsgi began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2024
Device: Kobo
This plugin for me is broken. I accidentally installed the version 3.6.9 and all of my Kobo conversions are now broken. Here is the traceback- I am on 7.16.0 Calibre on Sonoma 14.5.
Quote:
2024-08-02 20:47:35 [ERROR] Failed converting!
Traceback (most recent call last):
File "calibre_plugins.kepubout.conversion.kepub_output" , line 191, in convert
common.modify_epub(
File "calibre_plugins.kepubout.common", line 238, in modify_epub
container.convert()
File "calibre_plugins.kepubout.container", line 398, in convert
self.__run_async_over_content(self.add_kobo_spans)
File "calibre_plugins.kepubout.container", line 394, in __run_async_over_content
self.__run_async(func, names)
File "calibre_plugins.kepubout.container", line 381, in __run_async
raise e
File "calibre_plugins.kepubout.container", line 377, in __run_async
name = future.result(timeout=60)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "concurrent/futures/_base.py", line 449, in result
File "concurrent/futures/_base.py", line 401, in __get_result
File "concurrent/futures/thread.py", line 58, in run
File "calibre_plugins.kepubout.container", line 523, in add_kobo_spans
self._add_kobo_spans_to_node(body, name)
File "calibre_plugins.kepubout.container", line 589, in _add_kobo_spans_to_node
node.append(self._add_kobo_spans_to_node(child, name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "calibre_plugins.kepubout.container", line 539, in _add_kobo_spans_to_node
special_tag_match = re.search(r"^(?:\{[^\}]+\})?(\w+)$", node.tag)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "re/__init__.py", line 176, in search
TypeError: expected string or bytes-like object, got '_cython_3_0_10.cython_function_or_method'

Traceback (most recent call last):
File "runpy.py", line 198, in _run_module_as_main
File "runpy.py", line 88, in _run_code
File "site.py", line 42, in <module>
File "site.py", line 38, in main
File "calibre/utils/ipc/worker.py", line 215, in main
File "calibre/gui2/convert/gui_conversion.py", line 38, in gui_convert_override
File "calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
File "calibre/ebooks/conversion/plumber.py", line 1307, in run
File "calibre_plugins.kepubout.conversion.kepub_output" , line 191, in convert
File "calibre_plugins.kepubout.common", line 238, in modify_epub
File "calibre_plugins.kepubout.container", line 398, in convert
File "calibre_plugins.kepubout.container", line 394, in __run_async_over_content
File "calibre_plugins.kepubout.container", line 381, in __run_async
File "calibre_plugins.kepubout.container", line 377, in __run_async
File "concurrent/futures/_base.py", line 449, in result
File "concurrent/futures/_base.py", line 401, in __get_result
File "concurrent/futures/thread.py", line 58, in run
File "calibre_plugins.kepubout.container", line 523, in add_kobo_spans
File "calibre_plugins.kepubout.container", line 589, in _add_kobo_spans_to_node
File "calibre_plugins.kepubout.container", line 539, in _add_kobo_spans_to_node
File "re/__init__.py", line 176, in search
TypeError: expected string or bytes-like object, got '_cython_3_0_10.cython_function_or_method'
liquidsgi is offline   Reply With Quote
Old 08-03-2024, 12:03 PM   #559
repilo
Connoisseur
repilo began at the beginning.
 
Posts: 68
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
Since I updated the plugin the kepub conversion fails. The "normal" epub doesn't fail me, but it fails in the complicated ones with a lot of jpg and footnotes.
Thank God I found the old version (I don't know where you can see the version number) that appears in post #556 and now everything works again.
Here are the first few lines (out of more than 9000) of the Calibre error report log in case it helps:
Spoiler:

calibre, version 7.16.0 (win32, embedded-python: True)
Error de conversión: Fallo: Convertido el libro 1 de 1 (xxx)

Convertido el libro 1 de 1 (xxx)
DeDRM v7.2.1: Trying to decrypt gb8qipc3.epub
DeDRM v7.2.1: Verifying zip archive integrity
DeDRM v7.2.1: “gb8qipc3.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre\customize\ui.py", line 199, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 644, in run
File "calibre_plugins.dedrm.__init__", line 420, in ePubDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v7.2.1: Couldn't decrypt after 0.5 seconds. DRM free perhaps?
Conversion options changed from defaults:
epub_version: '2'
verbose: 2
embed_font_family: 'Charter ITC Std boldh1v2'
read_metadata_from_opf: 'C:\\Users\\cactu\\AppData\\Local\\Temp\\calibre_y kyzbui0\\jrot5wdg.opf'
cover: 'C:\\Users\\cactu\\AppData\\Local\\Temp\\calibre_y kyzbui0\\om4x7ja9.jpeg'
remove_fake_margins: False
output_profile: 'kobo'
disable_font_rescaling: True
Resolved conversion options
calibre version: 7.16.0
{'add_alt_text_to_img': False,
'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': 'C:\\Users\\cactu\\AppData\\Local\\Temp\\calibre_y kyzbui0\\om4x7ja9.jpeg',
repilo is offline   Reply With Quote
Old 08-04-2024, 12:17 AM   #560
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,082
Karma: 2178847
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Quote:
Originally Posted by liquidsgi View Post
This plugin for me is broken. I accidentally installed the version 3.6.9 and all of my Kobo conversions are now broken. Here is the traceback- I am on 7.16.0 Calibre on Sonoma 14.5.
I'm not able to reproduce this, but I also don't have a Mac to try it on. Please open a bug on GitHub and attach a full calibre debug log so I can try to dig in more. Based on what I can see, the error seems to be claiming that the string constant is actually a function... which makes no sense at all. When creating the debug log, do the minimum steps necessary to reproduce the bug.


Quote:
Originally Posted by repilo View Post
Since I updated the plugin the kepub conversion fails. The "normal" epub doesn't fail me, but it fails in the complicated ones with a lot of jpg and footnotes.
Thank God I found the old version (I don't know where you can see the version number) that appears in post #556 and now everything works again.
Here are the first few lines (out of more than 9000) of the Calibre error report log in case it helps:
There's nothing at all useful in these lines. Please open a bug on GitHub, providing as much information as possible, and include or attach a full calibre debug log. When creating the debug log, do only the minimum steps necessary to reproduce the bug. If it only happens with specific books, make sure to include a scrambled epub.
jgoguen is offline   Reply With Quote
Old 08-04-2024, 07:15 AM   #561
repilo
Connoisseur
repilo began at the beginning.
 
Posts: 68
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
Quote:
Originally Posted by jgoguen View Post
When creating the debug log, do only the minimum steps necessary to reproduce the bug. If it only happens with specific books, make sure to include a scrambled epub.
OK, I've found the problem.
The problem is with comments of the type:
Code:
<!-- COMMENT -->
in the html. If I remove them all, the conversion doesn't give any error.
I attach a minimal file so you can test it.
Attached Files
File Type: epub test.epub (73.0 KB, 44 views)
repilo is offline   Reply With Quote
Old 08-04-2024, 02:09 PM   #562
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: 40,626
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by repilo View Post
OK, I've found the problem.
The problem is with comments of the type:
Code:
<!-- COMMENT -->
in the html. If I remove them all, the conversion doesn't give any error.
I attach a minimal file so you can test it.
Fails happily here on my Windows 11 system with either the Kepub Output plugin or the KoboTouchExtended driver.
DNSB is offline   Reply With Quote
Old 08-04-2024, 04:06 PM   #563
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,513
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Fails happily here on my Windows 11 system with either the Kepub Output plugin or the KoboTouchExtended driver.
Does Kepubify work with the comment?
JSWolf is offline   Reply With Quote
Old 08-04-2024, 05:43 PM   #564
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: 40,626
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Does Kepubify work with the comment?
Yes but so do the 3.6.7 versions of Kepub Output and KoboTouchExtended.
DNSB is offline   Reply With Quote
Old 08-05-2024, 12:03 PM   #565
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,513
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Yes but so do the 3.6.7 versions of Kepub Output and KoboTouchExtended.
Do you think we should go back to 3.6.7 as the official versions until whatever is wrong is fixed?
JSWolf is offline   Reply With Quote
Old 08-05-2024, 09:18 PM   #566
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,082
Karma: 2178847
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Version 3.6.10 should be offered by calibre within the next hour. This was caused by etree not following their own documentation, which was merry fun trying to chase down. But now there's also a test file including comments.
jgoguen is offline   Reply With Quote
Old 08-07-2024, 10:12 AM   #567
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,082
Karma: 2178847
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Version 3.6.11 should be offered by calibre in the next hour or so. This fixes an error converting some file types (like PDF).
jgoguen is offline   Reply With Quote
Old 10-19-2024, 06:20 PM   #568
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,082
Karma: 2178847
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Version 3.7.0 has been posted and should be offered by calibre within the next hour. This release brings an improvement to Kobo span generation and overall presentation by Shiandow.
jgoguen is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
catalogue builder output columns are not in the same order in the output KWhytte Library Management 5 12-04-2012 03:03 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 03:24 AM
Plugin which uses net as input and output medve Development 0 12-04-2011 04:20 PM
Creat new Output plugin (LaTeX and/or txt2tags) Lebewesen Development 3 11-22-2011 12:10 PM
AZW Conversion Output Plugin tylau0 Plugins 59 08-14-2011 11:36 PM


All times are GMT -4. The time now is 08:18 PM.


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