No Userscripts listed in 0.6.8 WHS2011

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
weldon
Release Testers
Release Testers
Posts: 21
Joined: October 29th, 2009, 3:22 pm

No Userscripts listed in 0.6.8 WHS2011

Post by weldon »

I keep trying to set my User-Scripts folder in the Sabnzbd config, but it doesn't show any scripts available via the main page or the 'Categories' section.


I've installed Sabnzbd numerous times on other computers, and have never had this issue. My setup is like this:


C:\Sickbeard\autoProcessTV\<my-scripts-here>
C:\Users\Administrator\Documents\Scripts\<my-scripts-here> (this is the default location that SAB suggests)

I've tried adding the complete path to my autoProcessTV folder, and the complete & abbrev. path of my 'working-directory' Scripts folder, but each time I check, I do not see any scripts available. The scripts in the folder is the standard sabToSickBeard.py.


Has anyone else encountered this? What might be the issue?
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: No Userscripts listed in 0.6.8 WHS2011

Post by sander »

Hi,

I believe with 0.6.8 (or 0.6.7) the user script must be set to "executable". However, in Windows I don't know how to set a file to be executable. (On Linux it's easy: set the x-bit)
weldon
Release Testers
Release Testers
Posts: 21
Joined: October 29th, 2009, 3:22 pm

Re: No Userscripts listed in 0.6.8 WHS2011

Post by weldon »

Interesting. I'll look into it tomorrow and post back if I get it working. Thanks!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: No Userscripts listed in 0.6.8 WHS2011

Post by shypike »

In Windows, examine the environment variable PATHEXT.
Only files with extensions listed in PATHEXT will be shown.
User avatar
sander
Release Testers
Release Testers
Posts: 9062
Joined: January 22nd, 2008, 2:22 pm

Re: No Userscripts listed in 0.6.8 WHS2011

Post by sander »

Ah, that was the Windows info indeed. Apart from that, is the statement in my previous post correct?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: No Userscripts listed in 0.6.8 WHS2011

Post by shypike »

For Linux/OSX, having the X bit is the only requirement.
weldon
Release Testers
Release Testers
Posts: 21
Joined: October 29th, 2009, 3:22 pm

Re: No Userscripts listed in 0.6.8 WHS2011

Post by weldon »

I came back to this thread after making a wrapper for the .py file:

sabToSickbeardExecutable.bat --

C:\Python27\python.exe C:\Users\Administrator\Documents\SabnzbdScripts\sabToSickBeard.py %1 %2 %3 %4 %5 %6 %7
exit %ERRORLEVEL%

--

I added the environment variable , but It looks like I'll need to restart... since this is the only script I'm planning on running, I'll probably leave this as is for now.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: No Userscripts listed in 0.6.8 WHS2011

Post by shypike »

PATHEXT is a system environment variable, requiring a system restart on change.
(Well, most of the time.)
Post Reply