Page 2 of 2

Re: Proposal: Plugins should be modules

Posted: Tue Jun 12, 2007 8:15 am
by tarka
Fixed up with markybob on IRC, should be OK now.

Re: Proposal: Plugins should be modules

Posted: Tue Jun 12, 2007 10:26 pm
by markybob
tarka wrote:Fixed up with markybob on IRC, should be OK now.
tarka, using latest svn, here's what i get...
loading torrentsearch plugin:

Code: Select all

    self.enabled_plugins[name] = plugin.enable(self.core, self.interface)
  File "/usr/share/deluge/plugins/TorrentSearch/__init__.py", line 17, in enable
    return plugin_Search(path, core, interface)
  File "/usr/share/deluge/plugins/TorrentSearch/plugin.py", line 5, in __init__
    import common, gtk, gtk.glade, dgtk, pref
ImportError: No module named common
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/deluge/dialogs.py", line 190, in plugin_toggled
    self.plugins.disable_plugin(plugin_name)
  File "/usr/lib/python2.4/site-packages/deluge/plugins.py", line 80, in disable_plugin
    plugin = self.enabled_plugins[name]
KeyError: 'Torrent Search'
same thing with network graph plugin

Code: Select all

  File "/usr/lib/python2.4/site-packages/deluge/plugins.py", line 98, in update_active_plugins
    plugin.update()
  File "/usr/share/deluge/plugins/NetworkGraph/plugin.py", line 114, in update
    import common
ImportError: No module named common
also, when trying to unload the blocklist plugin:

Code: Select all

terminate called after throwing an instance of 'asio::system_error'
  what():  Transport endpoint is not connected
Aborted

and deluge crashes.