Connoisseur
Posts: 76
Karma: 30702
Join Date: Jul 2010
Location: Italy
Device: Kobo Libra H2O
|
Quote:
Originally Posted by davidfor
Unfortunately, that did not have anything helpful in it.
Looking at the code, I can see something, but, I don't understand why it isn't breaking for others.
I have attached a beta that changes how the Qt library is loaded, and removes the code that loads Qt4 if loading from the current Qt fails. It works here, but, so did the other version. Hopefully it works.
|
Ok I just installed your beta and something has changed.
When I click "convert book" in the main Calibre window and click to select Kepub in the convert book windows this message popup
Spoiler:
calibre, version 6.1.0
ERRORE: Eccezione non gestita: <b>ModuleNotFoundError</b>:No module named 'PyQt4'
calibre 6.1 embedded-python: True
Windows-10-10.0.19044-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19044')
Python 3.10.1
Windows: ('10', '10.0.19044', 'SP0', 'Multiprocessor Free')
Interface language: it
Successfully initialized third party plugins: KePub Output (3, 6, 1) && KoboTouchExtended (3, 6, 0)
Traceback (most recent call last):
File "calibre_plugins.kepubout.common", line 276, in intValueChanged
ImportError: cannot import name 'Qt' from 'qt' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\qt\__init__.pyc)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.kepubout.common", line 278, in intValueChanged
ModuleNotFoundError: No module named 'PyQt4'
Then if I close the message popup I can set the preferences for the conversion to kepub and if I hit OK the processing begins but the conversion fails and another error message pop up
Spoiler:
calibre, version 6.1.0 (win32, embedded-python: True)
Errore di conversione: Non riuscita: Converti libro 1 di 1 (¡Tu la Pagaras!)
Converti libro 1 di 1 (¡Tu la Pagaras!)
Conversion options changed from defaults:
cover: 'D:\\Temp\\calibre_jpehdh4g\\25_iqfti.jpeg'
kepub_clean_markup: False
epub_version: '2'
read_metadata_from_opf: 'D:\\Temp\\calibre_jpehdh4g\\ypwok6lp.opf'
verbose: 2
output_profile: 'kobo'
Resolved conversion options
calibre version: 6.1.0
{'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': 'D:\\Temp\\calibre_jpehdh4g\\25_iqfti.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'epub_version': '2',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x00000159F5D23E80>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'kepub_clean_markup': False,
'kepub_disable_hyphenation': False,
'kepub_hyphenate': True,
'kepub_hyphenate_chars': 6,
'kepub_hyphenate_chars_after': 3,
'kepub_hyphenate_chars_before': 3,
'kepub_hyphenate_limit_lines': 2,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.KoboReaderOutput object at 0x00000159F5D22B60>,
'page_breaks_before': '/',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': 'D:\\Temp\\calibre_jpehdh4g\\ypwok6lp.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on D:\Temp\calibre_jpehdh4g\m0s0l6nb.epub
Found HTML cover OEBPS/Text/coverpage.xhtml
Parsing all content...
Parsing OEBPS/Text/content0003.xhtml ...
Parsing OEBPS/Text/content0018.xhtml ...
Parsing OEBPS/Text/content0022.xhtml ...
Parsing OEBPS/Text/content0027.xhtml ...
Parsing OEBPS/Text/content0005.xhtml ...
Parsing OEBPS/Text/content0012.xhtml ...
Parsing OEBPS/Text/content0014.xhtml ...
Parsing OEBPS/Styles/style001.css ...
Parsing OEBPS/Text/coverpage.xhtml ...
Parsing OEBPS/Text/content0008.xhtml ...
Parsing OEBPS/Text/content0017.xhtml ...
Parsing OEBPS/Text/content0020.xhtml ...
Parsing OEBPS/Text/colophon.xhtml ...
Parsing OEBPS/Text/content0025.xhtml ...
Parsing OEBPS/Text/content0006.xhtml ...
Parsing OEBPS/Text/content0009.xhtml ...
Parsing OEBPS/Text/content0011.xhtml ...
Parsing OEBPS/Text/content0013.xhtml ...
Parsing OEBPS/Text/content0015.xhtml ...
Parsing OEBPS/Text/content0004.xhtml ...
Parsing OEBPS/Text/Section0002.xhtml ...
Parsing OEBPS/Text/content0021.xhtml ...
Parsing OEBPS/Text/content0028.xhtml ...
Parsing OEBPS/Text/Section0001.xhtml ...
Parsing OEBPS/Text/Section0003.xhtml ...
Parsing OEBPS/Text/content0010.xhtml ...
Parsing OEBPS/Text/content0023.xhtml ...
Parsing OEBPS/Text/content0026.xhtml ...
Parsing OEBPS/Text/dediche.xhtml ...
Parsing OEBPS/Text/content0007.xhtml ...
Parsing OEBPS/Text/content0016.xhtml ...
Parsing OEBPS/Text/content0019.xhtml ...
Parsing OEBPS/Text/content0024.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 2387 items of level: p_1
p_1 left margin stats: Counter({'0': 2387})
p_1 right margin stats: Counter({'0': 2387})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'OEBPS/Text/coverpage.xhtml' from manifest
Creating KePub Output...
2022-07-19 07:46:34 [DEBUG] Running ePub conversion
Rescaling image from 600x800 to 512x684 cover.jpeg
Splitting markup on page breaks and flow limits, if any...
Looking for large trees in OEBPS/Text/content0003.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0018.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0022.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0027.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0005.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0012.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0014.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0008.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0017.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0020.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/colophon.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0025.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0006.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0009.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0011.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0013.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0015.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0004.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/Section0002.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0021.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0028.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/Section0001.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/Section0003.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0010.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0023.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0026.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/dediche.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0007.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0016.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0019.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/content0024.xhtml...
No large trees found
2022-07-19 07:46:34 [DEBUG] Done ePub conversion
2022-07-19 07:46:35 [DEBUG] Creating KePub Container for ePub at D:\Temp\calibre_jpehdh4g\xou34pfq.kepub
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file titlepage.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/colophon.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/dediche.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0003.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/Section0001.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0004.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0005.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0006.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0008.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/Section0003.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0007.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0010.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0009.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0011.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0012.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0014.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0013.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0015.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0016.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0018.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0019.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0020.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0017.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/Section0002.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0021.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0022.xhtml
2022-07-19 07:46:35 [DEBUG] Forcing cleanup for file OEBPS/Text/content0023.xhtml
2022-07-19 07:46:36 [DEBUG] Forcing cleanup for file OEBPS/Text/content0025.xhtml
2022-07-19 07:46:36 [DEBUG] Forcing cleanup for file OEBPS/Text/content0026.xhtml
2022-07-19 07:46:36 [DEBUG] Forcing cleanup for file OEBPS/Text/content0024.xhtml
2022-07-19 07:46:36 [DEBUG] Forcing cleanup for file OEBPS/Text/content0028.xhtml
2022-07-19 07:46:36 [DEBUG] Forcing cleanup for file OEBPS/Text/content0027.xhtml
Traceback (most recent call last):
File "runpy.py", line 196, in _run_module_as_main
File "runpy.py", line 86, in _run_code
File "site.py", line 82, in <module>
File "site.py", line 77, in main
File "site.py", line 49, in run_entry_point
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 1281, in run
File "calibre_plugins.kepubout.conversion.kepub_output" , line 150, in convert
File "calibre_plugins.kepubout.container", line 119, in __init__
File "calibre_plugins.kepubout.container", line 375, in __run_async_over_content
File "calibre_plugins.kepubout.container", line 368, in __run_async
File "concurrent\futures\_base.py", line 438, in result
File "concurrent\futures\_base.py", line 390, in __get_result
File "concurrent\futures\thread.py", line 58, in run
File "calibre_plugins.kepubout.container", line 310, in forced_cleanup
File "calibre_plugins.kepubout.container", line 170, in flush_cache
File "calibre_plugins.kepubout.container", line 368, in __run_async
File "concurrent\futures\_base.py", line 438, in result
File "concurrent\futures\_base.py", line 390, in __get_result
File "concurrent\futures\thread.py", line 58, in run
File "calibre_plugins.kepubout.container", line 174, in __flush_cache_impl
File "calibre\ebooks\oeb\polish\container.py", line 1023, in commit_item
PermissionError: [Errno 13] Permission denied: 'D:\\TEMP\\calibre_jpehdh4g\\gz07yiu8_epub_contain er\\OEBPS\\Text\\dediche.xhtml'
The error has something to do with temporary folders and it seem the same I receive when sending book to my Kobo with the KoboTouchExtended plugin.
I will try to understand why this happens as moving the Temp directory location in not working.
If you need I attach the debug logfile.
Anyway thank you for your effort.
|