Package: calibre
Version: 2.60.0+dfsg-1
Severity: important

Dear Maintainer,

After an upgrade a few days ago, I can no longer edit books using Calibre.

I open Calibre, open the editing window, and so far so good. Now I double click 
on an xhtml file, and instead of the file opening for editing, I get the 
following error.

calibre 2.60  embedded-python: False is64bit: True
Linux-4.6.0-1-amd64-x86_64-with-debian-stretch-sid Linux ('64bit', 'ELF')
('Linux', '4.6.0-1-amd64', '#1 SMP Debian 4.6.2-1 (2016-06-15)')
Python 2.7.12+
Linux: ('debian', 'stretch/sid', '')
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/tweak_book/boss.py", line 1375, in 
edit_file_requested
    return self.edit_file(name, syntax)
  File "/usr/lib/calibre/calibre/gui2/tweak_book/boss.py", line 1354, in 
edit_file
    self.init_editor(name, editor, data, use_template=bool(use_template))
  File "/usr/lib/calibre/calibre/gui2/tweak_book/boss.py", line 1329, in 
init_editor
    editor.data = data
  File "/usr/lib/calibre/calibre/gui2/tweak_book/editor/widget.py", line 191, 
in fset
    self.editor.load_text(val, syntax=self.syntax, doc_name=editor_name(self))
  File "/usr/lib/calibre/calibre/gui2/tweak_book/editor/text.py", line 172, in 
load_text
    self.highlighter.set_document(self.document(), doc_name=doc_name)
  File "/usr/lib/calibre/calibre/gui2/tweak_book/editor/syntax/base.py", line 
107, in set_document
    doc.contentsChange.connect(self.reformat_blocks)
TypeError: connect() failed between contentsChange(int,int,int) and 
reformat_blocks()

I get the same error for txt, xml, opf, and ncx files.  I tested jpgs, and they 
open without error.

I had expected the editing window to open normally.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages calibre depends on:
ii  calibre-bin            2.60.0+dfsg-1+b1
ii  fonts-liberation       1.07.4-1
ii  imagemagick            8:6.8.9.9-7.2
ii  libjs-mathjax          2.6.1-1
ii  poppler-utils          0.44.0-3
ii  python-apsw            3.8.11.1-r1-1+b2
ii  python-beautifulsoup   3.2.1-1
ii  python-chardet         2.3.0-2
ii  python-cherrypy3       3.5.0-2
ii  python-cssselect       0.9.2-1
ii  python-cssutils        1.0-4.1
ii  python-dateutil        2.4.2-1
ii  python-dbus            1.2.4-1
ii  python-feedparser      5.1.3-3
ii  python-imaging         3.3.0-1
ii  python-lxml            3.6.0-1
ii  python-markdown        2.6.6-1
ii  python-mechanize       1:0.2.5-3
ii  python-netifaces       0.10.4-0.1+b2
ii  python-pil             3.3.0-1
ii  python-pkg-resources   20.10.1-1.1
ii  python-pyparsing       2.1.7+dfsg1-1
ii  python-pyqt5           5.7+dfsg-1
ii  python-pyqt5.qtsvg     5.7+dfsg-1
ii  python-pyqt5.qtwebkit  5.7+dfsg-1
ii  python-routes          2.3.1-2
ii  python2.7              2.7.12-2
ii  xdg-utils              1.1.1-1

Versions of packages calibre recommends:
ii  python-dnspython  1.14.0-3

calibre suggests no packages.

-- no debconf information

Reply via email to