You are not logged in.
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
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
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
Online
@loqs and @Scimmia: Many thanks for your replies - they are very helpful.
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