Error while Running a post proc script

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
tino5k
Newbie
Newbie
Posts: 2
Joined: December 8th, 2012, 7:34 pm

Error while Running a post proc script

Post by tino5k »

Hi all,

Trying to use a script that will automatically update my xbmc library when a movie downloaded is finished, but getting an error. On Win 7 with Python 27 installed.

The error is "'python' is not recognized as an internal or external command, operable program or batch file."

Here is a copy of the script:
#!/usr/bin/python
import urllib

urllib.urlopen("http://localhost:8082/xbmcCmds/xbmcHttp ... o)").close()


I added the python path variable in windows. I'm using the sabtosickbeard.exe script for TV shows and that works fine, not sure why there is an error with this one. Thanks.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Error while Running a post proc script

Post by shypike »

I don't know which Python you installed,
but the best result you get by installing ActiveState Python
uising its msi installer.
Make sure .py files are associated with Python.
This means that you can start a Python script by typing in its name.
Also, after installing, stop and start SABnzbd.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Error while Running a post proc script

Post by sander »

To test the python installation, open a CMD box (windows-keys, then "CMD"), and type: 'python' + <ENTER>. Do you get an error message? If so, follow Shypike's advice.
tino5k
Newbie
Newbie
Posts: 2
Joined: December 8th, 2012, 7:34 pm

Re: Error while Running a post proc script

Post by tino5k »

Hi guys, i've verified installation. When I type python at the cmd prompt it takes me into the phython 2.7.3 console and i am not getting any errors, so it seems to be installed properly.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Error while Running a post proc script

Post by shypike »

Did you also stop and start SABnzbd (not restart)?
Post Reply