ebook-viewer cannot open htmlz-files

Bug #1691976 reported by Rolf Haertl
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

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).

Revision history for this message
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
Revision history for this message
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
    Thread.run(self)
  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
Revision history for this message
Er Ts (ebookhoarder) wrote :

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

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

Remote bug watches

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