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

Bug #998216 reported by David Yearsley on 2012-05-11
This bug affects 9 people
Affects Status Importance Assigned to Milestone

Bug Description

I downloaded and installed the latest version of Calibre Portable ( this morning and the eBook viewer will not open any .lit files. I switched back to 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\", line 38, in run
  File "", line 483, in run
  File "site-packages\calibre\ebooks\oeb\iterator\", line 112, in __enter__
  File "site-packages\calibre\ebooks\oeb\iterator\", line 44, in write_oebbook
  File "site-packages\calibre\ebooks\oeb\", line 64, in __call__
  File "site-packages\calibre\ebooks\oeb\", line 954, in __str__
  File "site-packages\calibre\ebooks\oeb\", line 909, in fget
  File "site-packages\calibre\ebooks\lit\", line 886, in read
  File "site-packages\calibre\ebooks\lit\", line 722, in get_file
  File "site-packages\calibre\ebooks\lit\", line 514, in read_content
  File "site-packages\calibre\ebooks\lit\", line 410, in wrapper
ValueError: I/O operation on closed file will still convert the .lit file but the eBook viewer will not open the file.

I tested this by doing fresh files for each and and a fresh import of a book would open the file I chose where 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