Can't open chm file

Bug #1831511 reported by komer on 2019-06-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Calibre updated on my distro (MX linux 18.3 amd64)
From:
calibre-bin_3.42.0+dfsg-0.1~mx17+1_amd64.deb
To:
calibre-bin_3.43.0+dfsg-0.1~mx17+1_amd64.deb
After that, trying to open chm file produces this output:

calibre, version 3.43.0
ERROR: Could not open e-book: Failed to read book, /home/komer/Documents/CPP/Literatura/C Plus Plus Primer - Stanley B. Lippman.chm click "Show Details" for more information

Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/utils/ipc/simple_worker.py", line 290, in main
    res = {'result':func(*args, **kwargs)}
  File "/usr/lib/calibre/calibre/ebooks/oeb/iterator/book.py", line 64, in extract_book
    plumber.opts, plumber.input_fmt, log, {}, tdir)
  File "/usr/lib/calibre/calibre/customize/conversion.py", line 246, in __call__
    log, accelerators)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/chm_input.py", line 78, in convert
    htmlpath, toc = self._create_html_root(mainpath, log, uenc)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/chm_input.py", line 116, in _create_html_root
    hhcdata = self._read_file(hhcpath)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/chm_input.py", line 177, in _read_file
    with lopen(name, 'rb') as f:
  File "/usr/lib/calibre/calibre/startup.py", line 174, in local_open
    ans = open(name, mode, bufsize)
IOError: [Errno 2] No such file or directory: u'/tmp/calibre_3.43.0_tmp_H6UB_d/YEhXHt_chm2oeb/b/0201721481.hhc'

----
Today Calibre is updated to 3.44.
change log for 3.44 does not mention any fix for chm bug so I didn't install it.
I'll stick to 3.42 till bug is fixed.

Attach a CHM file demonstrating/reproducing the problem to this bug report. You can do that by clicking the "Add attachment or patch" link at the bottom of the bug's page. If the file you are attaching is copyrighted, mark the bug as private. You can do this by clicking the tiny yellow icon next to "This report contains Public information" in the top right area of the bug's page.

 status incomplete

Changed in calibre:
status: New → Incomplete
komer (thekomer) wrote :

I think this .chm is not protected by any copyright.
I downloaded it from https://submain.com/ghostdoc/samples/PowerCollections/CHM/
It's just a sample chm. And also can not be opened under mentioned Calibre version.

Trying to open this file also produces this output:
calibre, version 3.43.0
ERROR: Could not open e-book: Failed to read book, /home/komer/Downloads/PowerCollections.chm click "Show Details" for more information

Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/utils/ipc/simple_worker.py", line 290, in main
    res = {'result':func(*args, **kwargs)}
  File "/usr/lib/calibre/calibre/ebooks/oeb/iterator/book.py", line 64, in extract_book
    plumber.opts, plumber.input_fmt, log, {}, tdir)
  File "/usr/lib/calibre/calibre/customize/conversion.py", line 246, in __call__
    log, accelerators)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/chm_input.py", line 78, in convert
    htmlpath, toc = self._create_html_root(mainpath, log, uenc)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/chm_input.py", line 116, in _create_html_root
    hhcdata = self._read_file(hhcpath)
  File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/chm_input.py", line 177, in _read_file
    with lopen(name, 'rb') as f:
  File "/usr/lib/calibre/calibre/startup.py", line 174, in local_open
    ans = open(name, mode, bufsize)
IOError: [Errno 2] No such file or directory: u'/tmp/calibre_3.43.0_tmp_7wjXul/aPkelw_chm2oeb/powercollections.hhc'

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: Incomplete → Fix Released

This issue was fixed in the openstack/tripleo-validations 11.0.0 release.

This issue was fixed in the openstack/tripleo-validations 10.5.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers