"TypeError: QPixmap(): argument 1 has unexpected type" – incompatibility with Qt 5.4.1?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The problem was already described in several places over the web:
http://
http://
It seems to occur mainly for Arch users after the latest updates, but it will probably also occur for other users who are using the newest Qt version (5.4.1).
The problem, at least for me, manifests itself in at least two ways:
When I try to edit a book individually with the popup form, the following error is thrown (instead of the popup form appearing):
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
changed, rows_to_refresh = self.do_
File "/usr/lib/
set_
File "/usr/lib/
d = editors[cls](db, parent, editing_
File "/usr/lib/
Resizable
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.cover = Cover(self)
File "/usr/lib/
ImageView
File "/usr/lib/
self._pixmap = QPixmap(self)
TypeError: QPixmap(): argument 1 has unexpected type 'Cover'
When I edit the book by clicking twice on title, author or some other field, everything works normally. The same goes for editing several books in bulk. Displaying the window with the edit form seems to be the problem.
Also, when I try to convert a book via the UI, this error is triggered:
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
jobs, changed, bad = convert_
File "/usr/lib/
d = SingleConfig(
File "/usr/lib/
self.
File "/usr/lib/
self.mw = widget_
File "/usr/lib/
self.
File "/usr/lib/
Widget.
File "/usr/lib/
self.
File "/usr/lib/
self.cover = ImageView(
File "/usr/lib/
self._pixmap = QPixmap(self)
TypeError: QPixmap(): argument 1 has unexpected type 'ImageView'
Converting by running ebook-convert on the command line works fine.
Versions:
calibre: 2.20.0-1
Qt: 5.4.1-2
pyqt5: 5.4.1-1
OS: Linux 3.18.6-1-ARCH (x86_64)
This is a very serious error; it makes to impossible to convert document or edit metadata.