Package: calibre
Version: 2.55.0+dfsg-1
Severity: important
Dear Maintainer,
After a update and upgrade in late April 2016, editing in Calibre stopped
working.
If I open Calibre, right-click and edit an ePub book stored there, and then try
to open an HTML file in the book, I get a pop-up error message.
---
calibre, version 2.55.0
ERROR: Unhandled exception: <b>AttributeError</b>:type object 'QUrl' has no
attribute 'None'
calibre 2.55 embedded-python: False is64bit: True
Linux-4.4.0-1-amd64-x86_64-with-debian-stretch-sid Linux ('64bit', 'ELF')
('Linux', '4.4.0-1-amd64', '#1 SMP Debian 4.4.2-3 (2016-02-21)')
Python 2.7.11+
Linux: ('debian', 'stretch/sid', '')
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/tweak_book/preview.py", line 224, in
createRequest
url = unicode(request.url().toString(QUrl.None))
AttributeError: type object 'QUrl' has no attribute 'None'
---
After I click OK for the error message popup, Calibre closes.
I have not done extensive testing, but it seems this mostly or only happens
with HTML files. Within Calibre, I have successfully opened and edited txt and
css files, and likewise jpgs are viewable. All HTML files that I've tried to
edit lead to this crash.
If it's a book I've edited in the past, where the HTML tab would ordinarily
open up in the editor because the editor remembers files viewed in the past,
Calibre crashes when I try to open the editor itself, before I click on any
specific files.
I would like to be able to edit books.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.4.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.55.0+dfsg-1
ii fonts-liberation 1.07.4-1
ii imagemagick 8:6.8.9.9-7+b2
ii libjs-mathjax 2.6.1-1
ii poppler-utils 0.38.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.1+git90c72b0-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.2.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.2.0-1
ii python-pkg-resources 20.10.1-1
ii python-pyparsing 2.0.3+dfsg1-1
ii python-pyqt5 5.6+dfsg-1
ii python-pyqt5.qtsvg 5.6+dfsg-1
ii python-pyqt5.qtwebkit 5.6+dfsg-1
ii python-routes 2.2-1
ii python2.7 2.7.11-8
ii xdg-utils 1.1.1-1
Versions of packages calibre recommends:
ii python-dnspython 1.12.0-1
calibre suggests no packages.
-- no debconf information