Re: [Plugin] Autoshutdown - Shutdown PC once torrents comple
Posted: Sat Aug 29, 2015 4:07 pm
This works for me but how to abort the computer shut down?
Support Forum for the Deluge BitTorrent Client
https://forum.deluge-torrent.org/
Code: Select all
[ERROR ] 12:14:06 eventmanager:59 Event handler TorrentFinishedEvent failed in <bound method Core.on_event_torrent_finished of <autoshutdown.core.Core object at 0xa710fb6c>> with exception org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.67" (uid=1000 pid=3850 comm="/usr/bin/python /usr/bin/deluge ") interface="org.freedesktop.login1" member="Shutdown" error name="(unset)" requested_reply="0" destination=":1.2" (uid=0 pid=849 comm="/lib/systemd/systemd-logind ")
Code: Select all
org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", interface="org.freedesktop.login1"
Code: Select all
/usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/mahfahmy/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).
warnings.warn(msg, UserWarning)
Code: Select all
[ERROR ] 02:46:11 eventmanager:59 Event handler TorrentFinishedEvent failed in <bound method Core.on_event_torrent_finished of <autoshutdown.core.Core object at 0x7f63c40cba50>> with exception org.freedesktop.DBus.Error.UnknownMethod: Method "Shutdown" with signature "" on interface "org.freedesktop.UPower" doesn't exist
Code: Select all
[ERROR ] 02:46:58 init:57 Unable to disable plugin!
[ERROR ] 02:46:58 init:58 deregister_event_handler() takes exactly 3 arguments (2 given)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/deluge/plugins/init.py", line 55, in disable
self.plugin.disable()
File "/home/mahfahmy/.config/deluge/plugins/AutoShutdown-1.1-py2.7.egg/autoshutdown/core.py", line 104, in disable
component.get("EventManager").deregister_event_handler(self.on_event_torrent_finished)
TypeError: deregister_event_handler() takes exactly 3 arguments (2 given)
Nothing to do with Deluge, can search web for fix.ifahmyy wrote:this is the output when I open deluge :Code: Select all
/usr/lib/python2.7/dist-packages/pkg_resources.py:1031: UserWarning: /home/mahfahmy/.python-eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable). warnings.warn(msg, UserWarning)
Not using the latest version...ifahmyy wrote: File "/home/mahfahmy/.config/deluge/plugins/AutoShutdown-1.1-py2.7.egg/autoshutdown/core.py", line 104, in disable
Code: Select all
chmod g-wx,o-wx ~/.python-eggs
Code: Select all
[ERROR ] 01:45:40 eventmanager:59 Event handler TorrentFinishedEvent failed in <bound method Core.on_event_torrent_finished of <autoshutdown.core.Core object at 0x7f6eb804ba50>> with exception org.freedesktop.DBus.Error.UnknownMethod: Method "Shutdown" with signature "" on interface "org.freedesktop.UPower" doesn't exist