Cannot enable Execute plugin: <class 'KeyError'>: ''

General support for problems installing or using Deluge
Post Reply
poncho
New User
New User
Posts: 4
Joined: Thu Nov 03, 2016 9:32 am

Cannot enable Execute plugin: <class 'KeyError'>: ''

Post by poncho »

I'm trying to enable the Execute plugin but it always unticks in WebUI. Log says:

Code: Select all

Traceback: <class 'KeyError'>: ''
/usr/lib/python3.11/site-packages/twisted/internet/defer.py:206:maybeDeferred
/usr/lib/python3.11/site-packages/deluge/plugins/init.py:24:enable
/usr/lib/python3.11/site-packages/deluge/plugins/Execute-1.3-py3.11.egg/deluge_execute/core.py:76:enable
20:25:21 [WARNING ][deluge.pluginmanagerbase      :1622] Problems occurred disabling plugin: Execute
Then the execute.conf looks like this:

Code: Select all

{
    "file": 1,
    "format": 1
}{
    "commands": [
        [
            "0bb10eabd0806d15e572b7924ae42b3c1214e142",
            "",
            ""
        ]
    ]

I don't know where this single commands entry is coming from. Deleting this file always recreates it.

Running latest Deluge 2.1.1 (Docker linuxserver/deluge:2.1.1)

Does someone know how to fix this?
mhertz
Moderator
Moderator
Posts: 2216
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Cannot enable Execute plugin: <class 'KeyError'>: ''

Post by mhertz »

poncho wrote: Sat Sep 09, 2023 8:42 pm Does someone know how to fix this?
Yes, shut down deluged, delete execute.conf, restart deluged.
I don't know where this single commands entry is coming from. Deleting this file always recreates it.
That last 'commands' section comes from having at one point in time enabled execute plugin, selected 'add' followed by pressing 'apply' while leaving the two combo-boxes empty, hence generates such erroneous execute.conf which triggers this upon every startup.
poncho
New User
New User
Posts: 4
Joined: Thu Nov 03, 2016 9:32 am

Re: Cannot enable Execute plugin: <class 'KeyError'>: ''

Post by poncho »

That worked. Thank you.
Post Reply