You are not logged in.

#1 2015-11-16 16:13:06

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Searching in Calibre 2.44.1 Viewer is failing

Just upgraded my system and got: calibre-2.44.1-1
Unfortunately, when I search for text in (apparently) any ebook, using Calibre Viewer, I now get a failure:

calibre, version 2.44.1
ERROR: Unhandled exception: <b>TypeError</b>:__init__() got an unexpected keyword argument 'track_positions'
calibre 2.44.1  isfrozen: False is64bit: True
Linux-4.2.5-1-ARCH-x86_64-with-glibc2.2.5 Linux ('64bit', '')
('Linux', '4.2.5-1-ARCH', '#1 SMP PREEMPT Tue Oct 27 08:13:28 CET 2015')
Python 2.7.10
Linux: ('', '', '')
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/viewer/main.py", line 553, in find
    backwards=backwards)
  File "/usr/lib/calibre/calibre/ebooks/oeb/iterator/book.py", line 72, in search
    root = parse(raw)
  File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 671, in parse
    return parse_html5(raw, log=log, line_numbers=line_numbers, linenumber_attribute=linenumber_attribute, replace_entities=False, fix_newlines=False)
  File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 611, in parse_html5
    parser = HTMLParser(tree=builder, track_positions=line_numbers, namespaceHTMLElements=not discard_namespaces)
TypeError: __init__() got an unexpected keyword argument 'track_positions'

Downgrading to calibre-2.43.0-1-x86_64.pkg works okay.
Anyone else experiencing this problem?

Edit: Both 32-bit and 64-bit versions of 2.44 fail, not necessarily on the first search

Last edited by ninian (2015-11-16 16:25:30)

Offline

#2 2015-11-16 17:23:51

loqs
Member
Registered: 2014-03-06
Posts: 17,625

Re: Searching in Calibre 2.44.1 Viewer is failing

Seems to be a difference between html5lib as provided by calibre and html5lib as provided by the python2-html5lib package in arch.
If you rebuild calibre locally with line 39 of PKGBUILD removed does that fix it?

Offline

#3 2015-11-16 17:26:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,660

Re: Searching in Calibre 2.44.1 Viewer is failing

Yes, unfortunately Calibre isn't really using html5lib, they're using their own private fork of it without renaming.
https://bugs.archlinux.org/task/43382

Offline

#4 2015-11-16 17:42:15

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: Searching in Calibre 2.44.1 Viewer is failing

@loqs and @Scimmia: Many thanks for your replies - they are very helpful.

loqs wrote:

Seems to be a difference between html5lib as provided by calibre and html5lib as provided by the python2-html5lib package in arch.
If you rebuild calibre locally with line 39 of PKGBUILD removed does that fix it?

Yes indeed, rebuilding like that seems to work. Though have only tested briefly, it's looking good.

Offline

Board footer

Powered by FluxBB