Closed Hellmark closed 2 years ago
Interesting. Is this a clean install or are you upgrading from a previous version of this plugin? Does the plugin show up in the plugin list after this failed installation? If so, can you try removing it, then completely restart Calibre, then try to install it again?
100% fresh install. I just installed Kubuntu this week, and installed calibre yesterday. Hadn't migrated over any of my stuff yet.
It doesn't show up after install fails.
I can confirm an error with the same exact setting. Just upgraded to Kubuntu 21.10. I did work with 21.04
Error message is the following:
calibre, version 5.25.0 FEHLER: Unbehandelter Ausnahmefehler: InvalidPlugin:Initialisierung der Erweiterung Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 674, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.init", line 138, in initialize config_widget.save_settings() UnboundLocalError: local variable 'update_account_path' referenced before assignment fehlgeschlagen. Rückverfolgung: Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 674, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.init", line 138, in initialize config_widget.save_settings() UnboundLocalError: local variable 'update_account_path' referenced before assignment
calibre 5.25 embedded-python: False is64bit: True Linux-5.13.0-20-generic-x86_64-with-glibc2.34 Linux ('64bit', 'ELF') ('Linux', '5.13.0-20-generic', '#20-Ubuntu SMP Fri Oct 15 14:21:35 UTC 2021') Python 3.9.7 Interface language: de Successfully initialized third party plugins: DeDRM (7, 1, 0) Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 674, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.init", line 138, in initialize config_widget.save_settings() UnboundLocalError: local variable 'update_account_path' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/preferences/plugins.py", line 327, in add_plugin plugin = add_plugin(path) File "/usr/lib/calibre/calibre/customize/ui.py", line 484, in add_plugin plugin = initialize_plugin(plugin, path_to_zip_file, PluginInstallationType.EXTERNAL) File "/usr/lib/calibre/calibre/customize/ui.py", line 679, in initializeplugin raise InvalidPlugin((('Initialization of plugin %s failed with traceback:') calibre.customize.InvalidPlugin: Initialisierung der Erweiterung Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 674, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.init", line 138, in initialize config_widget.save_settings() UnboundLocalError: local variable 'update_account_path' referenced before assignment fehlgeschlagen. Rückverfolgung: Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 674, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.init", line 138, in initialize config_widget.save_settings() UnboundLocalError: local variable 'update_account_path' referenced before assignment
Thanks. This error will most likely be fixed with PRs #3 and #4, which I will look into more closely in the next couple days and then merge them into the repository and make a new release that should fix this error.
Hi @Hellmark and @TiberiusRegenschein I have just released v0.0.10 of the plugin which should hopefully fix this issue (thanks @fperrin for the PR). Please let me know if it now works. If it doesn't, at least the logging should now be more verbose.
Hi @Leseratte10 , this did solve my problem. After updating the plugin I am back to a working solution
0.0.10 worked for me!
So, when I go to add the plugin through normal means, I get the following error
`calibre, version 5.25.0 ERROR: Unhandled exception: InvalidPlugin:Initialization of plugin Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 674, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.init", line 138, in initialize update_account_path(deacsmprefs["path_to_account_data"]) UnboundLocalError: local variable 'update_account_path' referenced before assignment failed with traceback: Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 674, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.init", line 138, in initialize update_account_path(deacsmprefs["path_to_account_data"]) UnboundLocalError: local variable 'update_account_path' referenced before assignment
calibre 5.25 embedded-python: False is64bit: True Linux-5.13.0-16-generic-x86_64-with-glibc2.34 Linux ('64bit', 'ELF') ('Linux', '5.13.0-16-generic', '#16-Ubuntu SMP Fri Sep 3 14:53:27 UTC 2021') Python 3.9.7 Interface language: None Successfully initialized third party plugins: DeDRM (7, 2, 1) && Obok DeDRM (7, 2, 1) Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 674, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.init", line 138, in initialize update_account_path(deacsmprefs["path_to_account_data"]) UnboundLocalError: local variable 'update_account_path' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/preferences/plugins.py", line 327, in add_plugin plugin = add_plugin(path) File "/usr/lib/calibre/calibre/customize/ui.py", line 484, in add_plugin plugin = initialize_plugin(plugin, path_to_zip_file, PluginInstallationType.EXTERNAL) File "/usr/lib/calibre/calibre/customize/ui.py", line 679, in initializeplugin raise InvalidPlugin((('Initialization of plugin %s failed with traceback:') calibre.customize.InvalidPlugin: Initialization of plugin Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 674, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.init", line 138, in initialize update_account_path(deacsmprefs["path_to_account_data"]) UnboundLocalError: local variable 'update_account_path' referenced before assignment failed with traceback: Traceback (most recent call last): File "/usr/lib/calibre/calibre/customize/ui.py", line 674, in initialize_plugin p.initialize() File "calibre_plugins.deacsm.init", line 138, in initialize update_account_path(deacsmprefs["path_to_account_data"]) UnboundLocalError: local variable 'update_account_path' referenced before assignment `
Running Kubuntu 21.10, with Calibre 5.25.0