Page 1 of 1

2.3.1Beta1 - userscript no longer works

Posted: October 9th, 2017, 8:32 am
by order512
My .bat windows script was working fine in 2.3.0, but in 2.3.1Beta1 i see this:
Exit(-1) Cannot run script <PathToMyscript>

Re: 2.3.1Beta1 - userscript no longer works

Posted: October 9th, 2017, 9:44 am
by safihre
Could you enable Debug logging in the Status Window, then try another download with the script.

After it fails, click Show logging in the Status Window, then in the logging somewhere it will say:

Code: Select all

Failed script <PathToMyscript>, Traceback:
Can you post what is listed in the lines below this?

Re: 2.3.1Beta1 - userscript no longer works

Posted: October 9th, 2017, 11:53 am
by order512
2017-10-09 09:51:13,411::DEBUG::[newsunpack:198] Failed script myscript.bat, Traceback:
Traceback (most recent call last):
File "sabnzbd\newsunpack.pyo", line 175, in external_processing
File "subprocess.pyo", line 390, in __init__
File "subprocess.pyo", line 640, in _execute_child
TypeError: environment can only contain strings

Re: 2.3.1Beta1 - userscript no longer works

Posted: October 9th, 2017, 12:35 pm
by safihre
Could you send me the NZB you are trying to download and the path to your complete folder? You can send it to [email protected]

And this is on Windows, right?

Re: 2.3.1Beta1 - userscript no longer works

Posted: October 9th, 2017, 1:50 pm
by order512
I'm using windows 10.
The nzb is in a category where download folder is E:\, normal folder is D:\complete.
I have the issue with any nzb, i send you one by mail.

Re: 2.3.1Beta1 - userscript no longer works

Posted: October 9th, 2017, 4:21 pm
by safihre
Bug found and will be fixed in next release of 2.3.1!