Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-03-2015, 04: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
Old 03-03-2015, 08:18 AM   #2
jeremywakeman
Junior Member
jeremywakeman began at the beginning.
 
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'
jeremywakeman is offline   Reply With Quote
Advert
Old 03-03-2015, 09:16 AM   #3
jeremywakeman
Junior Member
jeremywakeman began at the beginning.
 
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
jeremywakeman is offline   Reply With Quote
Old 03-04-2015, 04:33 AM   #4
zouhzouh
Junior Member
zouhzouh began at the beginning.
 
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.
zouhzouh is offline   Reply With Quote
Old 03-04-2015, 11:55 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,358
Karma: 83238367
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 : https://bugs.archlinux.org/task/43382
eschwartz is offline   Reply With Quote
Advert
Reply

Tags
arch linux, qt5.4 downgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cover size in Edit Metadata toomuchreading Library Management 8 10-12-2013 01:57 PM
Edit metadata cover size Sparkling Books Conversion 1 03-23-2013 12:52 PM
single metadata edit - bug? salines Calibre 0 11-25-2011 06:41 AM
Unable to edit metadata mediax Calibre 2 11-04-2011 10:53 PM
Can I add a cover in multiple metadata edit? Sassyinkpen Calibre 1 09-23-2009 12:55 AM


All times are GMT -4. The time now is 07:48 PM.


MobileRead.com is a privately owned, operated and funded community.