Ticket #4151 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

Opening ('View') an lrf book displays following trace

Reported by: dotwilbert Owned by: kovidgoyal
Priority: major Milestone:
Component: E-book viewer Version: trunk
Keywords: View LRF book Cc: dotwilbert@…

Description

Type Error?: unsupported operand type(s) for -: 'str' and 'int' Failed to render document Detailed traceback: Traceback (most recent call last):

File "/Applications/Media/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/gui2/lrf_renderer/main.py", line 33, in run

self.lrf.parse()

File "calibre/ebooks/lrf/lrfparser.pyo", line 28, in parse

self._parse_objects()

File "calibre/ebooks/lrf/lrfparser.pyo", line 51, in _parse_objects

self._parse_object(objid, objoff, objsize)

File "calibre/ebooks/lrf/lrfparser.pyo", line 59, in _parse_object

obj = get_object(self, self._file, objid, objoff, objsize, self.scramble_key)

File "calibre/ebooks/lrf/objects.pyo", line 1259, in get_object File "calibre/ebooks/lrf/objects.pyo", line 150, in init File "calibre/ebooks/lrf/objects.pyo", line 68, in init File "calibre/ebooks/lrf/objects.pyo", line 78, in handle_tag File "calibre/ebooks/lrf/objects.pyo", line 56, in tag_to_val File "calibre/ebooks/lrf/objects.pyo", line 180, in read_stream

Type Error?: unsupported operand type(s) for -: 'str' and 'int'

Change History

comment:1 Changed 9 months ago by kovidgoyal

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in branch trunk. The fix will be in the next release.

Note: See TracTickets for help on using tickets.