Deluge Plugin Requirements

Suggest, post, or discuss plugins for Deluge
Post Reply
ratzeputz
Member
Member
Posts: 16
Joined: Wed May 09, 2012 1:32 pm

Deluge Plugin Requirements

Post by ratzeputz »

Hello,

i have a question concerning requirements of deluge plugins. Not python requirements, but requirements concerning the deluge version.

System: Debian Squeeze x64
Deluge: headless 1.3.1 from ppa.launchpad.net/ferramroberto/.....
python 2.6

I tried to use some plugins (using the python 2.6 egg file): AutoAdd, Execute, Traffic Limit. (configuration always from gtk client)

AutoAdd seems to work flawless.

But for the other two i got errors:
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 249, in addCallbacks
self._runCallbacks()
File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 441, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "/usr/lib/pymodules/python2.6/deluge/component.py", line 262, in on_depends_started
return self.components[name]._component_start()
File "/usr/lib/pymodules/python2.6/deluge/component.py", line 120, in _component_start
d = maybeDeferred(self.start)
--- <exception caught here> ---
File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 125, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/pymodules/python2.6/deluge/core/torrentmanager.py", line 204, in start
self.load_state()
File "/usr/lib/pymodules/python2.6/deluge/core/torrentmanager.py", line 600, in load_state
resume_data=resume_data.get(torrent_state.torrent_id))
File "/usr/lib/pymodules/python2.6/deluge/core/torrentmanager.py", line 474, in add
component.get("EventManager").emit(TorrentAddedEvent(torrent.torrent_id))
File "/usr/lib/pymodules/python2.6/deluge/core/eventmanager.py", line 56, in emit
handler(*event.args)
File "/usr/share/pyshared/deluge/plugins/Execute-1.2-py2.6.egg/execute/core.py", line 89, in event_handler

File "/usr/share/pyshared/deluge/plugins/Execute-1.2-py2.6.egg/execute/core.py", line 116, in execute_commands

File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
exceptions.OSError: [Errno 2] No such file or directory
Unhandled error in Deferred:
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 249, in addCallbacks
self._runCallbacks()
File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 441, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "/usr/lib/pymodules/python2.6/deluge/component.py", line 262, in on_depends_started
return self.components[name]._component_start()
File "/usr/lib/pymodules/python2.6/deluge/component.py", line 120, in _component_start
d = maybeDeferred(self.start)
--- <exception caught here> ---
File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 125, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/pymodules/python2.6/deluge/core/torrentmanager.py", line 204, in start
self.load_state()
File "/usr/lib/pymodules/python2.6/deluge/core/torrentmanager.py", line 600, in load_state
resume_data=resume_data.get(torrent_state.torrent_id))
File "/usr/lib/pymodules/python2.6/deluge/core/torrentmanager.py", line 474, in add
component.get("EventManager").emit(TorrentAddedEvent(torrent.torrent_id))
File "/usr/lib/pymodules/python2.6/deluge/core/eventmanager.py", line 56, in emit
handler(*event.args)
File "/usr/share/pyshared/deluge/plugins/Execute-1.2-py2.6.egg/execute/core.py", line 89, in event_handler

File "/usr/share/pyshared/deluge/plugins/Execute-1.2-py2.6.egg/execute/core.py", line 116, in execute_commands

File "/usr/lib/python2.6/subprocess.py", line 623, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1141, in _execute_child
raise child_exception
exceptions.OSError: [Errno 2] No such file or directory

and
File "/usr/lib/pymodules/python2.6/deluge/plugins/init.py", line 48, in enable
self.plugin.enable()
File "/home/deluge/.config/deluge/plugins/TrafficLimits-0.2-py2.6.egg/trafficlimits/core.py", line 68, in enable

File "/usr/lib/python2.6/dist-packages/twisted/internet/task.py", line 163, in start
self()
File "/usr/lib/python2.6/dist-packages/twisted/internet/task.py", line 194, in __call__
d = defer.maybeDeferred(self.f, *self.a, **self.kw)
--- <exception caught here> ---
File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 125, in maybeDeferred
result = f(*args, **kw)
File "/home/deluge/.config/deluge/plugins/TrafficLimits-0.2-py2.6.egg/trafficlimits/core.py", line 103, in update_traffic

File "/usr/lib/pymodules/python2.6/deluge/config.py", line 243, in __getitem__
return self.get_item(key)
File "/usr/lib/pymodules/python2.6/deluge/config.py", line 261, in get_item
if isinstance(self.__config[key], str):
exceptions.KeyError: 'maximum_upload'
Are these problems with python or deluge specific? Is there information concerning plugin compatibility to deluge versions?

Thanks in advance,
ratzeputz
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge Plugin Requirements

Post by Cas »

Not sure but the latest version of Deluge is 1.3.5 so please retest with that.

The PPA (ferramroberto) you referenced is not the Deluge Team one so you can get the latest with this PPA:

Code: Select all

deb http://ppa.launchpad.net/deluge-team/ppa/ubuntu lucid main 
deb-src http://ppa.launchpad.net/deluge-team/ppa/ubuntu lucid main 
User avatar
DarkSniper
New User
New User
Posts: 3
Joined: Sun Apr 01, 2012 5:06 am

Re: Deluge Plugin Requirements

Post by DarkSniper »

I'm experiencing a similar problem with the Traffic Limits plugin using Python 2.7 and Deluge 1.3.5 on Arch Linux i686.

Code: Select all

:: Starting Deluge Daemon                                                [DONE] 
[root@Dark-Server ~]# Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/deluge/plugins/init.py", line 48, in enable
    self.plugin.enable()
  File "/srv/deluge/.config/deluge/plugins/TrafficLimits-0.2-py2.7.egg/trafficlimits/core.py", line 68, in enable
    
  File "/usr/lib/python2.7/site-packages/twisted/internet/task.py", line 170, in start
    self()
  File "/usr/lib/python2.7/site-packages/twisted/internet/task.py", line 215, in __call__
    d = defer.maybeDeferred(self.f, *self.a, **self.kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/srv/deluge/.config/deluge/plugins/TrafficLimits-0.2-py2.7.egg/trafficlimits/core.py", line 124, in update_traffic
    
  File "/usr/lib/python2.7/site-packages/deluge/config.py", line 243, in __getitem__
    return self.get_item(key)
  File "/usr/lib/python2.7/site-packages/deluge/config.py", line 261, in get_item
    if isinstance(self.__config[key], str):
exceptions.KeyError: 'reset_time_upload'
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge Plugin Requirements

Post by Cas »

For the Traffic Limits plugin try deleting the conf file from config but if still having issue you can ask the author: https://github.com/mavit/deluge-trafficlimits/issues/
ratzeputz
Member
Member
Posts: 16
Joined: Wed May 09, 2012 1:32 pm

Re: Deluge Plugin Requirements

Post by ratzeputz »

Using Deluge 1.3.5 Execute Plugin errors did not reappear. :)

I posted a bug report on traffic limits page, but it seems the dev is not supporting it actively anymore...


Addition:
The execution of scripts on adding torrents is working fine. But the same script with the setting to be called when a torrent is finished is not working.

Is there a setting that is somehow preventing the torrent completed exectution?
Only plugin i use addionally is AutoAdd.

Thanks so far :)
Post Reply