View Single Post
Old 06-04-2024, 10:51 PM   #1
slm
Fool
slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.slm ought to be getting tired of karma fortunes by now.
 
Posts: 470
Karma: 4113712
Join Date: Feb 2003
Device: Kindle: Voyage,PW1,KOA, Kobo: Clara Colour, Nook GLP, Pocketbook verse
Can't Customize DeDRM plugin

I just tried to add information for a new kindle to the DeDRM plugin. This has always worked fine.

Today I got the message that the widget init() "takes 2 positional arguments but three were given".


I recently updated to 7.12.0 but I don't think I've done this in quite a while, so I'm not sure what the last version that worked was.

The details text was:
calibre, version 7.12.0
ERROR: Unhandled exception: <b>TypeError</b>:ConfigWidget.__init__() takes 2 positional arguments but 3 were given

calibre 7.12 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.5
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: None
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: DeACSM (0, 0, 16) && Gather KFX-ZIP (from KFX Input) (2, 12, 0) && DeDRM (10, 0, 9) && Package KFX (from KFX Input) (2, 12, 0) && Ebook Translator (2, 3, 4) && Favourites Menu (1, 3, 1) && KFX metadata reader (from KFX Input) (2, 12, 0) && From KFX (2, 12, 0) && KFX Input (2, 12, 0) && KindleUnpack - The Plugin (0, 83, 1) && Modify ePub (1, 8, 3) && OverDrive Libby (0, 1, 9)
Traceback (most recent call last):
File "calibre\gui2\preferences\plugins.py", line 298, in customize_plugin
File "calibre\gui2\preferences\plugins.py", line 375, in modify_plugin
File "calibre\customize\__init__.py", line 160, in do_user_config
File "calibre_plugins.dedrm.__init__", line 1054, in config_widget
TypeError: ConfigWidget.__init__() takes 2 positional arguments but 3 were given
Anyone have any idea why this happened or how to fix it?

Thanks.
slm is offline   Reply With Quote