calibre: e-book management

Lit files will not open in the viewer in the new 0.8.51 version

Reported by David Yearsley on 2012-05-11
68
This bug affects 9 people
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

I downloaded and installed the latest version of Calibre Portable (0.8.5.1) this morning and the eBook viewer will not open any .lit files. I switched back to 0.8.5.0 and it works just fine. It tries to open but then gives the error: "I/O operation on closed file".

Here is what I get when I click Show More:
calibre, version 0.8.51
ERROR: Could not open ebook: I/O operation on closed file

Traceback (most recent call last):
  File "site-packages\calibre\gui2\viewer\main.py", line 38, in run
  File "threading.py", line 483, in run
  File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 112, in __enter__
  File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 44, in write_oebbook
  File "site-packages\calibre\ebooks\oeb\writer.py", line 64, in __call__
  File "site-packages\calibre\ebooks\oeb\base.py", line 954, in __str__
  File "site-packages\calibre\ebooks\oeb\base.py", line 909, in fget
  File "site-packages\calibre\ebooks\lit\reader.py", line 886, in read
  File "site-packages\calibre\ebooks\lit\reader.py", line 722, in get_file
  File "site-packages\calibre\ebooks\lit\reader.py", line 514, in read_content
  File "site-packages\calibre\ebooks\lit\reader.py", line 410, in wrapper
ValueError: I/O operation on closed file

0.8.5.1 will still convert the .lit file but the eBook viewer will not open the file.

I tested this by doing fresh files for each 0.8.5.0 and 0.8.5.1 and a fresh import of a book 0.8.5.0 would open the file I chose where 0.8.5.1 would not open the book.

Related branches

Fixed in branch lp:calibre. The fix will be in the next release. calibre is usually released every 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