View Single Post
Old 07-11-2022, 05:34 AM   #1085
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,229
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by davidfor View Post
That looks like a Qt enum problem, but, the line number doesn't make sense. Line 436 is code working out what icon to use. The line that makes sense is on 471. Are you using the released version of the plugin?
Sorry about that. I use a modified version for dark mode compatibility.
Here is the real error on the released version:

Code:
Traceback (most recent call last):
  File "calibre_plugins.annotations.action", line 324, in fetch_device_annotations
  File "calibre_plugins.annotations.action", line 1177, in process_selected_books
  File "calibre_plugins.annotations.common_utils", line 436, in __init__
AttributeError: type object 'QKeySequence' has no attribute 'Copy'
Actually, the line number is still 436 (only the other ones changed).
This is the 436 line code:
Code:
        self.copy_action.setShortcuts(QKeySequence.Copy)
thiago.eec is offline   Reply With Quote