bendikro / deluge-iface-watch

Other
13 stars 5 forks source link

Plugin can't be instantiated (DelugeV2) #2

Open ben-ba opened 3 years ago

ben-ba commented 3 years ago

Is this still a problem in v2 for Deluge v2? I would expect this to be resolved due to Remove no-op Linux kernel 2.x parser fix in python-ifcfg

Originally posted by @bendikro in https://github.com/bendikro/deluge-iface-watch/issues/1#issuecomment-551627023

2020-11-09 11:18:01 [ERROR ][deluge.pluginmanagerbase :154 ] Unable to instantiate plugin 'IfaceWatch' from '/config/plugins/IfaceWatch-2.0-py3.6.egg'! 2020-11-09 11:18:01 [ERROR ][deluge.pluginmanagerbase :1343] No module named 'ifcfg' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/deluge/pluginmanagerbase.py", line 148, in enable_plugin instance = cls(pluginname.replace('-', '')) File "/config/plugins/IfaceWatch-2.0-py3.6.egg/ifacewatch/init.py", line 38, in init from .core import Core as CorePluginClass File "/config/plugins/IfaceWatch-2.0-py3.6.egg/ifacewatch/core.py", line 20, in import ifcfg ModuleNotFoundError: No module named 'ifcfg' 2020-11-09 11:18:05 [ERROR ][deluge.pluginmanagerbase :154 ] Unable to instantiate plugin 'IfaceWatch' from '/config/plugins/IfaceWatch-2.0-py3.6.egg'! 2020-11-09 11:18:05 [ERROR ][deluge.pluginmanagerbase :1343] No module named 'ifcfg' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/deluge/pluginmanagerbase.py", line 148, in enable_plugin instance = cls(pluginname.replace('-', '')) File "/config/plugins/IfaceWatch-2.0-py3.6.egg/ifacewatch/init.py", line 38, in init from .core import Core as CorePluginClass File "/config/plugins/IfaceWatch-2.0-py3.6.egg/ifacewatch/core.py", line 20, in import ifcfg ModuleNotFoundError: No module named 'ifcfg'

ben-ba commented 3 years ago

In the egg-file, the modules ifcfg and pyiface are missing. I successfully add them, by adding blank __init__.py files in all directories in the directory "include". Plugin load successfully, but no GUI on the unofficial macOS deluge2.app.

020-11-09 15:35:04 [INFO ][deluge.plugin.ifacewatch.util.logger :39 ] IfaceWatch.core:47: IP was changed from outside IfaceWatch: None -> 0.0.0.0 2020-11-09 15:35:04 [INFO ][deluge.plugin.ifacewatch.util.logger :39 ] IfaceWatch.core:62: Enabled Iface Watch 2.0 2020-11-09 15:35:04 [INFO ][deluge.plugin.ifacewatch.util.logger :39 ] IfaceWatch.core:80: Scheduling watch with interval 10. 2020-11-09 15:35:04 [INFO ][deluge.pluginmanagerbase :189 ] Plugin IfaceWatch enabled...