E-book viewer: error opening a *.chm file

Bug #1922503 reported by etc205
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

1. Open the attached file, "glossary.chm", (that's a glossary of nautical terms in Russian) in the viewer.
2. The viewer reports an error (username edited out):
---
calibre, version 5.14.0
ERROR: Loading book failed: Failed to open the book at C:\Users\<username>\Downloads\glossary.chm. Click "Show details" for more info.

Failed to convert book: C:\Users\<username>\Downloads\glossary.chm with error:
InputFormatPlugin: CHM Input running
on C:\Users\<username>\Downloads\glossary.chm
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
  File "calibre\customize\ui.py", line 428, in get_file_type_metadata
  File "calibre\customize\builtins.py", line 186, in get_metadata
  File "calibre\ebooks\chm\metadata.py", line 177, in get_metadata
  File "calibre\ebooks\chm\metadata.py", line 140, in get_metadata_from_reader
  File "calibre\ebooks\chm\reader.py", line 123, in GetFile
calibre.ebooks.chm.reader.CHMError: Unable to locate '/11 - Ïîÿñíåíèå ìîðñêèõ òåðìèíîâ.htm' within CHM file 'b'C:\\Users\\<username>\\AppData\\Local\\Temp\\calibre_r1ch8jat\\gfheo0rc_chm_metadata.chm''
Traceback (most recent call last):
  File "runpy.py", line 194, in _run_module_as_main
  File "runpy.py", line 87, 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 197, in main
  File "<string>", line 1, in <module>
  File "calibre\srv\render_book.py", line 870, in viewer_main
  File "calibre\srv\render_book.py", line 861, in render_for_viewer
  File "calibre\srv\render_book.py", line 838, in render
  File "calibre\ebooks\oeb\iterator\book.py", line 63, in extract_book
  File "calibre\customize\conversion.py", line 245, in __call__
  File "calibre\ebooks\conversion\plugins\chm_input.py", line 57, in convert
  File "calibre\ebooks\conversion\plugins\chm_input.py", line 27, in _chmtohtml
  File "calibre\ebooks\chm\reader.py", line 49, in __init__
calibre.ebooks.chm.reader.CHMError: Unable to open CHM file 'b'C:\\Users\\<username>\\Downloads\\glossary.chm''
---
The MS-Windows HTML Help executable program, "hh.exe", opens the file without issues.

Calibre version: 5.14,
OS: Windows 10 Home 1803.

Revision history for this message
etc205 (etc205) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

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

 status fixreleased

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.

Other bug subscribers

Bug attachments