View Single Post
Old 08-12-2019, 09:37 PM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Terisa de morgan View Post
Hi,

I have a library that, sometimes, when calibre starts, throws this exception: "TypeError: QAction(): arguments did not match any overloaded call"

Spoiler:
calibre, version 3.46.0
ERROR: Excepción no considerada: <b>TypeError</b>:QAction(): arguments did not match any overloaded call:
overload 1: argument 1 has unexpected type 'unicode'
overload 2: not enough arguments
overload 3: argument 1 has unexpected type 'unicode'

calibre 3.46 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.18362')
Python 2.7.15+
Windows: ('10', '10.0.18362', 'SP0', u'Multiprocessor Free')
Interface language: es
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 17, 1) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 17, 1) && Extract ToCs (1, 0, 0) && Ex Libris (1, 0, 20) && Overdrive Link (2, 33, 0) && Virtual Library Switcher (1, 0, 0) && Reading List (1, 6, 6) && KoboTouchExtended (3, 1, 5) && Goodreads Sync (1, 12, 10) && Search The Internet (1, 7, 6) && NormComment (0, 0, 2) && User Category (1, 5, 3) && Save Composite Custom Columns (1, 1, 0) && Kobo Books (1, 7, 0) && KFX metadata reader (from KFX Input) (1, 17, 1) && KFX Input (1, 17, 1) && GetFileName (0, 0, 13) && EpubSplit (2, 7, 0) && Favourites Menu (1, 0, 4) && Goodreads (1, 4, 0) && SmartEject (2, 2, 0) && KindleUnpack - The Plugin (0, 81, 5) && Quality Check (1, 9, 11) && Kobo Utilities (2, 8, 1) && Search Switcher (1, 0, 0) && EpubMerge (2, 5, 0) && Annotations (1, 9, 3) && Modify ePub (1, 4, 4) && View Manager (1, 4, 3) && Diaps Editing Toolbag (0, 3, 5) && Edit Columns (0, 0, 1) && JS_Editor_Tools (0, 2, 18) && My Tools (0, 0, 37) && FictionDB (1, 2, 0) && Extract ISBN (1, 4, 5) && Clean Comments (0, 0, 4) && Owned Books Goodreads (0, 0, 6) && Generate Cover (1, 5, 21) && Barnes & Noble (1, 2, 15) && Import List (1, 4, 0) && Count Pages (1, 8, 2) && Find Duplicates (1, 6, 4) && Smashwords Metadata (1, 0, 0) && Fantastic Fiction (1, 3, 0) && GoodreadsAuthor (0, 0, 1) && Overdrive Link* (2, 33, 0)
Traceback (most recent call last):
File "calibre_plugins.search_switcher.ui", line 57, in about_to_show_menu
TypeError: QAction(): arguments did not match any overloaded call:
overload 1: argument 1 has unexpected type 'unicode'
overload 2: not enough arguments
overload 3: argument 1 has unexpected type 'unicode'


and calibre ends. The next time it starts there is no problem. It only happens in a specific library (I have more than 10 with the same plugins, although not the same virtual libraries or views).

I don't know what to look at.
The highlighted line is were the error is happening. It looks like it is a plugin called "Search Switcher". In a method called "about_to_show_menu". I don't recognise the plugin name, but, that method is usually something that builds the menu for the plugin. I'd say that the problem is that something is producing an unicode string instead of whatever was there before. With the recent work for Python 3 compatibility, there have been a few of these. Without being able to see the plugin code, I could only guess that there is something in the plugins configuration that is causing the problem. If "Search Switcher" is a quick way to swap between searches, then it could be that a search or title has some characters that the menu creation doesn't like.
davidfor is offline   Reply With Quote