View Single Post
Old 03-03-2015, 03:32 AM   #1
zouhzouh
Junior Member
zouhzouh began at the beginning.
 
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'
And when I start calibre in console, there is this message (but maybe, there is no link with the bug above) :
Code:
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
and file ~/.mtpz-data does not exist, anyway.

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.
zouhzouh is offline   Reply With Quote