Convert HTML page to EPUB is no longer possible

Bug #2027763 reported by Noki Joe
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

In version 6.18.1, converting imported HTML pages to EPUB was still possible. Since version 6.19.0 the following error occurs during conversion:

calibre, version 6.23.0 (win32, embedded-python: True)
Konvertierungsfehler: Fehlgeschlagen: Buch 2 von 2 (Mein Überraschungsgeschenk) konvertieren

Buch 2 von 2 (Mein Überraschungsgeschenk) konvertieren
Conversion options changed from defaults:
  read_metadata_from_opf: 'C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\gpapon1c.opf'
  verbose: 2
  output_profile: 'generic_eink'
Resolved conversion options
calibre version: 6.23.0
{'allow_local_files_outside_root': False,
 'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'breadth_first': False,
 'change_justification': 'original',
 'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
            "'\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', "
            "'i')) or @class = 'chapter']",
 'chapter_mark': 'pagebreak',
 'comments': None,
 'cover': None,
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_package': 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_max_image_size': 'none',
 '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 0x000002237D664820>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': False,
 '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_levels': 5,
 '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.GenericEink object at 0x000002237D664460>,
 'page_breaks_before': "//*[name()='h1' or name()='h2']",
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': 'C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\gpapon1c.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: HTML Input running
on C:\Users\USER\AppData\Local\Temp\calibre_9mxsvao7\20kxvygw.htm
Language not specified
Creator not specified
Building file list...
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\index.php with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\index.php'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\cats.php with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\cats.php'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\authors.php with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\authors.php'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\top.php with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\top.php'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\new.php with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\new.php'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\search.php with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\search.php'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\links.php with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\links.php'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\tools.php with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\tools.php'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\setfont.php with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\setfont.php'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\author.php?id=4905 with error: [Errno 22] Invalid argument: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\author.php?id=4905'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\sdrv_l1d_plumber\\go\\s\\mydirtyhobby\\11 with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\sdrv_l1d_plumber\\\\go\\\\s\\\\mydirtyhobby\\\\11'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\sdrv_l1d_plumber\\unreg\\s\\story.php?id=45435&width=10 with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\sdrv_l1d_plumber\\\\unreg\\\\s\\\\story.php?id=45435&width=10'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\sdrv_l1d_plumber\\unreg\\s\\story.php?id=45435&width=20 with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\sdrv_l1d_plumber\\\\unreg\\\\s\\\\story.php?id=45435&width=20'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\sdrv_l1d_plumber\\unreg\\s\\story.php?id=45435&width=30 with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\sdrv_l1d_plumber\\\\unreg\\\\s\\\\story.php?id=45435&width=30'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\sdrv_l1d_plumber\\unreg\\s\\story.php?id=45435&width=40 with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\sdrv_l1d_plumber\\\\unreg\\\\s\\\\story.php?id=45435&width=40'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\sdrv_l1d_plumber\\unreg\\s\\story.php?id=45435&width=50 with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\sdrv_l1d_plumber\\\\unreg\\\\s\\\\story.php?id=45435&width=50'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\sdrv_l1d_plumber\\unreg\\s\\story.php?id=45435&width=60 with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\sdrv_l1d_plumber\\\\unreg\\\\s\\\\story.php?id=45435&width=60'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\sdrv_l1d_plumber\\unreg\\s\\story.php?id=45435&width=70 with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\sdrv_l1d_plumber\\\\unreg\\\\s\\\\story.php?id=45435&width=70'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\sdrv_l1d_plumber\\unreg\\s\\story.php?id=45435&width=80 with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\sdrv_l1d_plumber\\\\unreg\\\\s\\\\story.php?id=45435&width=80'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\sdrv_l1d_plumber\\unreg\\s\\story.php?id=45435&width=90 with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\sdrv_l1d_plumber\\\\unreg\\\\s\\\\story.php?id=45435&width=90'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\sdrv_l1d_plumber\\unreg\\s\\story.php?id=45435&width=100 with error: [Errno 2] No such file or directory: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\sdrv_l1d_plumber\\\\unreg\\\\s\\\\story.php?id=45435&width=100'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\story.php?id=45435&rest=1 with error: [Errno 22] Invalid argument: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\story.php?id=45435&rest=1'")
IgnoreFile("Could not read from file: C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\cat.php?cat=24 with error: [Errno 22] Invalid argument: 'C:\\\\Users\\\\USER\\\\AppData\\\\Local\\\\Temp\\\\calibre_9mxsvao7\\\\cat.php?cat=24'")
 Found files...
   HTMLFile:0:a:'C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\20kxvygw.htm'
Normalizing filename cases
Rewriting HTML links
Parsing 20kxvygw.htm ...
Initial parse failed, using more forgiving parsers
Parsing 20kxvygw.htm as HTML
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 83, in <module>
  File "site.py", line 78, in main
  File "site.py", line 50, 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 1108, in run
  File "calibre\customize\conversion.py", line 242, in __call__
  File "calibre\ebooks\conversion\plugins\html_input.py", line 105, in convert
  File "calibre\ebooks\conversion\plugins\html_input.py", line 207, in create_oebbook
  File "calibre\ebooks\oeb\base.py", line 268, in rewrite_links
  File "calibre\ebooks\conversion\plugins\html_input.py", line 283, in resource_adder
  File "calibre\ebooks\conversion\plugins\html_input.py", line 273, in link_to_local_path
  File "calibre\utils\filenames.py", line 630, in get_long_path_name
OSError: [WinError 123] Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch: '\\\\?\\C:\\Users\\USER\\AppData\\Local\\Temp\\calibre_9mxsvao7\\author.php?id=4905'

Revision history for this message
Kovid Goyal (kovid) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.