Package: calibre Version: 2.55.0+dfsg-1 Severity: normal When Calibre first starts, it throws two exceptions, but continues loading and works correctly. They appear practically as the same time as the Calibre splash screen. The exceptions are:
Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/ui.py", line 152, in __init__ ac = self.init_iaction(action) File "/usr/lib/calibre/calibre/gui2/ui.py", line 166, in init_iaction ac = action.load_actual_plugin(self) File "/usr/lib/calibre/calibre/customize/__init__.py", line 603, in load_actual_plugin ac = getattr(importlib.import_module(mod), cls)(gui, File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.kindle_collections.ui", line 11, in <module> File "/usr/lib/calibre/calibre/startup.py", line 36, in load_module raise ImportError('Importing PyQt4 is not allowed as calibre uses PyQt5') ImportError: Importing PyQt4 is not allowed as calibre uses PyQt5 Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/ui.py", line 152, in __init__ ac = self.init_iaction(action) File "/usr/lib/calibre/calibre/gui2/ui.py", line 166, in init_iaction ac = action.load_actual_plugin(self) File "/usr/lib/calibre/calibre/customize/__init__.py", line 603, in load_actual_plugin ac = getattr(importlib.import_module(mod), cls)(gui, File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module exec compiled in mod.__dict__ File "calibre_plugins.find_duplicates.action", line 11, in <module> File "/usr/lib/calibre/calibre/startup.py", line 36, in load_module raise ImportError('Importing PyQt4 is not allowed as calibre uses PyQt5') ImportError: Importing PyQt4 is not allowed as calibre uses PyQt5 Failed to create system tray icon, your desktop environment probably does not support the StatusNotifier spec Now, this works when I launch Calibre from my WM itself (I run i3 with i3bar; I copied this exception from .xsession-errors), or if I run it from a terminal and have it open. However, if I launch it backgrounded from a terminal and exit the terminal process before the exception is displayed, I get a window titled "ERROR: Startup error", with the text "There was an error during calibre startup. Parts of calibre may not function. Click Show details to learn more". If I click the "Copy to clipboard" button, I get the exact same exception I reproduced here. If I click on the "Show details" button, I get the following text: Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/main.py", line 276, in initialize_db_stage2 self.start_gui(db) File "/usr/lib/calibre/calibre/gui2/main.py", line 211, in start_gui main = self.main = Main(self.opts, gui_debug=self.gui_debug) File "/usr/lib/calibre/calibre/gui2/ui.py", line 156, in __init__ traceback.print_exc() File "/usr/lib/python2.7/traceback.py", line 233, in print_exc print_exception(etype, value, tb, limit, file) File "/usr/lib/python2.7/traceback.py", line 124, in print_exception _print(file, 'Traceback (most recent call last):') File "/usr/lib/python2.7/traceback.py", line 13, in _print file.write(str+terminator) IOError: [Errno 5] Input/output error Then, Calibre keeps running, but does not start a UI; I have to manually kill it in order to get it started again. Note that I don't believe this bug to be related to #657730, as the exception categories are quite different. -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (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.1 ii libjs-mathjax 2.6.1-1 ii poppler-utils 0.44.0-2 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-2 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-2 ii python-pkg-resources 20.10.1-1 ii python-pyparsing 2.1.4+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-9 ii xdg-utils 1.1.1-1 Versions of packages calibre recommends: ii python-dnspython 1.14.0-1 calibre suggests no packages. -- no debconf information