Page 1 of 1

[resolved]2.3.2RC1 on Zesty ; Error on pre queu scripts

Posted: December 4th, 2017, 3:04 pm
by GzergzSra
Hi,
Since yesterday and an update of Python and Sabnzbd, my pre-queue scripts doesn't works anymore.

This is the error in logs :

Code: Select all

2017-12-01 21:05:12,229::DEBUG::[newsunpack:2306] Failed script Traceback: 
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/sabnzbd/newsunpack py", line 2304, in pre_queue
    startupinfo=stup, env=env, creationflags=creationflags)
  File "/usr/lib/python2.7/subprocess py", line 390, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess py", line 1024, in _execute_child
    raise child_exception
My script is just to set password in pre-queue

I hop the forum allow me to post this :'(
hum ok : phpbb think py extension is an url ;D

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Posted: December 4th, 2017, 3:07 pm
by GzergzSra
My script :

Code: Select all

import sys
try:
    (scriptname, nzbname, postprocflags, category, script, prio, downloadsize, grouplist, showname, season, episodenumber, episodename) = sys.argv
except:
    sys.exit(1)    # exit with 1 causes SABnzbd to ignore the output of this script

nzbname = nzbname.replace("REPOST-", "")
nzbname = nzbname.replace(".nfo", "")
nzbname = nzbname + " / " + nzbname

print "1"    # Accept
print nzbname
print
print
print
print
print
# 0 means OK
sys.exit(0)


Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Posted: December 4th, 2017, 3:17 pm
by sander
Long shot: in first line of script put:

#!/usr/bin/python2

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Posted: December 4th, 2017, 4:38 pm
by safihre
Is there more in the log? It seems maybe the first or last lines of the error got cut off, in which it says what exception is being thrown.
If you can't post it due to the forum software, you can also email it to me at [email protected]

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Posted: December 7th, 2017, 2:45 pm
by GzergzSra
sander wrote: December 4th, 2017, 3:17 pm Long shot: in first line of script put:

#!/usr/bin/python2
Hi, unfortunately that change nothing.
But thanks!
safihre wrote: December 4th, 2017, 4:38 pm Is there more in the log? It seems maybe the first or last lines of the error got cut off, in which it says what exception is being thrown.
If you can't post it due to the forum software, you can also email it to me at [email protected]
Hi Safihre,

I will send you the full log in a few minutes.

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Posted: December 7th, 2017, 4:52 pm
by safihre
I found a bug in the SABnzbd code, I hope to release RC2 tomorrow.

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Posted: December 9th, 2017, 8:23 am
by GzergzSra
Hi Safihre,

I will test it when RC2 will be available on the jcfp ppa.

thanks ! :)

Re: 2.3.2RC1 on Zesty ; Error on pre queu scripts

Posted: December 26th, 2017, 5:27 am
by GzergzSra
Resolved in the 2.3.2 release ;D
Thx