Page 1 of 1

prolems with post processing

Posted: July 3rd, 2012, 11:46 pm
by hypnotic
Version: 0.7.0
OS: Windows 7 x64
Install-type: Windows Installer
Firewall Software: None
Are you using IPV6? No


Hi

After installing the 0.7.0 my SABnzbd stopped processing the scripts from Sickbeard. I get the error: "Exit(1) operable program or batch file. (More)" and under more: "'python' is not recognized as an internal or external command, operable program or batch file."

My issue is quite similar to the one on this thread: http://forums.sabnzbd.org/viewtopic.php ... 20&p=23706
even I have installed the python under C:\Python27.

I have reverted to 0.6.15 and this has resolved the problem temporarily.

Re: Help With Categories

Posted: July 4th, 2012, 12:25 am
by shypike
Can you execute the script from a command prompt
by just typing the script name?

Re: prolems with post processing

Posted: July 4th, 2012, 3:37 pm
by hypnotic
I believe so ... I can execute sabtosickbeard.py from command prompt and it gives me an output of: No folder supplied - is this being called from SABnzbd?

Re: prolems with post processing

Posted: July 4th, 2012, 3:40 pm
by shypike
Yes, it gets a whole bunch of parameters.
The simplest way test is to copy the test script Sample-PostProc.cmd
from SABnzbd's program folder to your scripts folder.
Then download an NZB, with this script selected and afterwards
you can see the script output in the History.
If that succeeds then I'm afraid the problem is in SickBeard.

Re: prolems with post processing

Posted: July 6th, 2012, 4:30 pm
by ynksbsbll2
I'm having the same issue. I upgraded from 0.6.15 to 0.7.0 and received the same error when attempting to run SabtoSickbeard.py. I then upgraded to 0.7.1 and still received the error. I Reverted back to 0.6.15 and everything is working fine again.

Re: prolems with post processing

Posted: July 7th, 2012, 3:26 am
by shypike
There are exactly 0 differences in the parameter passing between 0.6.15, 0.7.0 and 0.7.1
The parameters are identical and so are the environment variables and current directory.
All three releases use the same runtimes libraries as well.
Moreover: it works fine when I test it with SickBeard (latest version running from sources).

Re: prolems with post processing

Posted: July 7th, 2012, 2:51 pm
by ynksbsbll2
Well I added my python install to the Path variable and now everything seems to be working properly. I should have known that was the issue to begin with, it just didn't seem to make sense that it would work in one instance of sabnzbd but not in a different version. Either way, all fixed!

Re: prolems with post processing

Posted: July 8th, 2012, 6:32 am
by jonaskp
Can you describe how you fixed it by "adding the Path variable". Is this in SABNZBD?

I have the same issue, and I have very little knowledge of Python. Help wouldd be appreciated :-)

Re: prolems with post processing

Posted: July 8th, 2012, 10:59 am
by ynksbsbll2
Sure. I right clicked My Computer and went to Properties and then clicked on the advanced tab (note I'm on Windows Home Server, but these steps should be pretty similar regardless). On the advanced tab there should be an Environment Variables button, click that. When that window pops up, scroll through the list on the bottom until you find the "Path" variable. Highlight it and click Edit. Go all the way to the end of the long chain and put the path to your Python install. For instance my python and pythonw executables were installed to C:\Python27 so that's the path I'd add. Make sure that path is separated from the others by a semicolon and you should be good.
Alternatively just do a search for "Add python to path" and you'll probably get something a bit more clear than what I just covered.

Re: prolems with post processing

Posted: July 8th, 2012, 1:24 pm
by jonaskp
Thanks for the quick reply. It seems to be working. Now that I think about it, I do remember something about doing this in a previous install.

Thanks a lot :-)