|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Apr 2011
Device: PocketBook Pro 602
|
[bug] Unable to edit metadata, due to « TypeError: … … unexpected type 'Cover' »
Hi, and thank you for that lovely software, I use it for several years now.
For now, I am unable to edit metadata due to this error : calibre, version 2.20.0 ERREUR : Exception non gérée: TypeError:QPixmap(): argument 1 has unexpected type 'Cover' Code:
calibre 2.20 isfrozen: False is64bit: True Linux-3.18.6-1-ARCH-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF') ('Linux', '3.18.6-1-ARCH', '#1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015') Python 2.7.9 Linux: ('', '', '') Successfully initialized third party plugins: Open With Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/actions/edit_metadata.py", line 294, in edit_metadata self.edit_metadata_for(row_list, ids, bulk=bulk) File "/usr/lib/calibre/calibre/gui2/actions/edit_metadata.py", line 317, in edit_metadata_for changed, rows_to_refresh = self.do_edit_metadata(row_list, current_row, editing_multiple) File "/usr/lib/calibre/calibre/gui2/actions/edit_metadata.py", line 342, in do_edit_metadata set_current_callback=self.set_current_callback, editing_multiple=editing_multiple) File "/usr/lib/calibre/calibre/gui2/metadata/single.py", line 1105, in edit_metadata d = editors[cls](db, parent, editing_multiple=editing_multiple) File "/usr/lib/calibre/calibre/gui2/metadata/single.py", line 52, in __init__ ResizableDialog.__init__(self, parent) File "/usr/lib/calibre/calibre/gui2/__init__.py", line 830, in __init__ self.setupUi(self) File "/usr/lib/calibre/calibre/gui2/metadata/single.py", line 103, in setupUi self.create_basic_metadata_widgets() File "/usr/lib/calibre/calibre/gui2/metadata/single.py", line 197, in create_basic_metadata_widgets self.cover = Cover(self) File "/usr/lib/calibre/calibre/gui2/metadata/basic_widgets.py", line 1013, in __init__ ImageView.__init__(self, parent, show_size_pref_name='edit_metadata_cover_widget', default_show_size=True) File "/usr/lib/calibre/calibre/gui2/widgets.py", line 298, in __init__ self._pixmap = QPixmap(self) TypeError: QPixmap(): argument 1 has unexpected type 'Cover' Code:
Unable to open ~/.mtpz-data for reading, MTPZ disabled. I am not the only user who encounters this very recent bug, as this post in french forum of archlinux does describe it. I tried to downgrade calibre (but not the dependencies) to older versions (until 2.17), bug is still there. Thank you for your help. |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2015
Device: Kindle Paperwhite
|
I am seeing the same problem.
I'm also on Arch Linux, so I suspect that a change to one of the dependencies is causing the problem. calibre, version 2.20.0 ERROR: Unhandled exception: <b>TypeError</b>:QPixmap(): argument 1 has unexpected type 'Cover' calibre 2.20 isfrozen: False is64bit: True Linux-3.18.6-1-ARCH-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF') ('Linux', '3.18.6-1-ARCH', '#1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015') Python 2.7.9 Linux: ('', '', '') Successfully initialized third party plugins: Quality Check Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/actions/edit_metadata.py", line 294, in edit_metadata self.edit_metadata_for(row_list, ids, bulk=bulk) File "/usr/lib/calibre/calibre/gui2/actions/edit_metadata.py", line 317, in edit_metadata_for changed, rows_to_refresh = self.do_edit_metadata(row_list, current_row, editing_multiple) File "/usr/lib/calibre/calibre/gui2/actions/edit_metadata.py", line 342, in do_edit_metadata set_current_callback=self.set_current_callback, editing_multiple=editing_multiple) File "/usr/lib/calibre/calibre/gui2/metadata/single.py", line 1105, in edit_metadata d = editors[cls](db, parent, editing_multiple=editing_multiple) File "/usr/lib/calibre/calibre/gui2/metadata/single.py", line 52, in __init__ ResizableDialog.__init__(self, parent) File "/usr/lib/calibre/calibre/gui2/__init__.py", line 830, in __init__ self.setupUi(self) File "/usr/lib/calibre/calibre/gui2/metadata/single.py", line 103, in setupUi self.create_basic_metadata_widgets() File "/usr/lib/calibre/calibre/gui2/metadata/single.py", line 197, in create_basic_metadata_widgets self.cover = Cover(self) File "/usr/lib/calibre/calibre/gui2/metadata/basic_widgets.py", line 1013, in __init__ ImageView.__init__(self, parent, show_size_pref_name='edit_metadata_cover_widget', default_show_size=True) File "/usr/lib/calibre/calibre/gui2/widgets.py", line 298, in __init__ self._pixmap = QPixmap(self) TypeError: QPixmap(): argument 1 has unexpected type 'Cover' |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2015
Device: Kindle Paperwhite
|
I downgraded all qt5 packages from 5.4.1 to 5.4.0 and I am able to edit metadata again.
Arch Linux March 3, 2015 |
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Apr 2011
Device: PocketBook Pro 602
|
@jeremywakeman : thank you for the tip.
I just downgraded the only package python2-pyqt5 (not all qt5 packages), and it does remove the bug. |
![]() |
![]() |
![]() |
#5 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
This has been fixed, see: https://github.com/kovidgoyal/calibr...23544188c894bd
https://bugs.launchpad.net/calibre/+bug/1427684 But that isn't the only problem with the repo calibre, and this one is a packaging bug... sorry, packaging bugfix ![]() |
![]() |
![]() |
Advert | |
|
![]() |
Tags |
arch linux, qt5.4 downgrade |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cover size in Edit Metadata | toomuchreading | Library Management | 8 | 10-12-2013 12:57 PM |
Edit metadata cover size | Sparkling Books | Conversion | 1 | 03-23-2013 11:52 AM |
single metadata edit - bug? | salines | Calibre | 0 | 11-25-2011 05:41 AM |
Unable to edit metadata | mediax | Calibre | 2 | 11-04-2011 09:53 PM |
Can I add a cover in multiple metadata edit? | Sassyinkpen | Calibre | 1 | 09-22-2009 11:55 PM |