Proposal: Plugins should be modules

Suggestions and discussion of future versions
tarka
Member
Member
Posts: 22
Joined: Sat Jun 09, 2007 6:49 am

Re: Proposal: Plugins should be modules

Postby tarka » Tue Jun 12, 2007 8:15 am

Fixed up with markybob on IRC, should be OK now.

markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Proposal: Plugins should be modules

Postby markybob » Tue Jun 12, 2007 10:26 pm

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.


Return to “Development”

Who is online

Users browsing this forum: No registered users and 3 guests