The script works perfect when run alone.
When I try to run it with Execute (on torrent add), it doesn't run.
According to the logs, it is executed. I see something like this:
Code: Select all
19:43:25 [DEBUG ][deluge_execute.core :61 ] Running commands for added
19:43:25 [DEBUG ][deluge_execute.core :61 ] Running C:\programdata\scripts\deluge\deluge-test.bat with args: [b'6f4df3cadd0a13275210b86c9828b99f70c96155', b'TEST-TORRENT', b'F:\\queue']
Code: Select all
Event handler TorrentAddedEvent failed in <function Core.enable.<locals>.create_event_handler.<locals>.event_handler at 0x000002AD36648550> with exception 'C:\\programdata\\scripts\\deluge\\deluge-test.py' is neither a Windows executable, nor a script with a shebang line
Code: Select all
c:\programdata\scripts\deluge\deluge-test.py
Code: Select all
python c:\programdata\scripts\deluge\deluge-test.py
This has to be something easy, but poorly documented and I can't figure it out.
thanks.
EDIT: The log snippets above are from different runs, sometimes using the .bat wrapper, sometimes using the .py straight. Usually with the py I get different errors, with the .bat I don't get the errors, but the .py script which is called from the .bat doesn't run even though it does manually. I hard coded all paths so the fact that log files don't get created show its not running at all.