ebook-viewer cannot open htmlz-files

Bug #1691976 reported by Rolf Haertl on 2017-05-19
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

The Calibre ebook-viewer cannot open htmlz-files generated by the ebook-convert module.

The following error code is returned:

"calibre, version 2.85.1
FEHLER: eBook konnte nicht geöffnet werden: 'NoneType' object is not iterable

Traceback (most recent call last):
  File "site-packages/calibre/gui2/viewer/main.py", line 86, in run
  File "threading.py", line 763, in run
  File "site-packages/calibre/ebooks/oeb/iterator/book.py", line 150, in __enter__
TypeError: 'NoneType' object is not iterable"

Calibre was extracted and installed from calibre-2.85.1-x86_64.txz under Ubuntu 16.04 LTS (64-bit).

Kovid Goyal (kovid) wrote :

I cannot replicate, steps I tried:

1) ebook-convert file.epub .htmlz
2) ebook-viewer file.htmlz

File is successfully opened.

Changed in calibre:
status: New → Invalid
Er Ts (ebookhoarder) wrote :

Calibre on arch linux 64bit cannot open htmlz converted by calibre:

calibre, version 3.34.0
ERROR: Could not open e-book: 'NoneType' object is not iterable

Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/viewer/main.py", line 87, in run
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/calibre/calibre/ebooks/oeb/iterator/book.py", line 155, in __enter__
    ordered = [i for i in self.opf.spine if i.is_linear] + \
TypeError: 'NoneType' object is not iterable

Changed in calibre:
status: Invalid → New
Er Ts (ebookhoarder) wrote :

Please check attached file which was converted in calibre from epub to htmlz

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  Edit
Everyone can see this information.

Other bug subscribers