Page 2 of 2
Re: [Python] sabnma - Notify My Android PP script.
Posted: October 15th, 2012, 10:53 pm
by canaan
thanks for the quick reply, I actually removed the start of the path since I didnt think it was important. sorry about that. The full path is:
ionice: can't execute '/volumeUSB1/usbshare/sabnzbd/scripts/sabnma.py': No such file or directory
I have no idea what ionice is, heh.
I should also say that my scripts folder is a different directory to my SABnzbd install folder. SAB is installed on volume1 and the scripts on a USB (obviously)
Re: [Python] sabnma - Notify My Android PP script.
Posted: October 16th, 2012, 11:02 am
by sweetie
canaan wrote:thanks for the quick reply, I actually removed the start of the path since I didnt think it was important. sorry about that. The full path is:
ionice: can't execute '/volumeUSB1/usbshare/sabnzbd/scripts/sabnma.py': No such file or directory
I have no idea what ionice is, heh.
I should also say that my scripts folder is a different directory to my SABnzbd install folder. SAB is installed on volume1 and the scripts on a USB (obviously)
Ah right. Well the only suggestion I have is to to ensure that 'IONice Paramaters' is blank in switches tab in config; otherwise make doubley sure that your path is set correctly in config.
If all else fails, maybe consider moving scripts into your sabnzbd directory.
Re: [Python] sabnma - Notify My Android PP script.
Posted: January 7th, 2013, 11:30 am
by Mickroz
I had the same problem, i fixed it by changing the python line according to my install in this case:
Code: Select all
#!/usr/local/python/bin/python2 -OO
Read more on this:
http://forums.sabnzbd.org/viewtopic.php?t=10595
Re: [Python] sabnma - Notify My Android PP script.
Posted: March 24th, 2013, 2:06 pm
by canaan
thanks for your reply Mickroz. I think this pointed me in the right direction.
Do you think this could be because I have python 2.7 installed?
however my new error is:
Unknown option: -
usage: /usr/local/python/bin/python2 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
I am using the line you suggested:
#!/usr/local/python/bin/python2 -OO
Re: [Python] sabnma - Notify My Android PP script.
Posted: July 22nd, 2014, 6:50 am
by methanoid
This seems to rely on Linux installed Python? What about people running SAB from Windows EXE? How does this work for us, please?
Re: [Python] sabnma - Notify My Android PP script.
Posted: July 26th, 2014, 6:21 am
by sweetie
methanoid wrote:This seems to rely on Linux installed Python? What about people running SAB from Windows EXE? How does this work for us, please?
It doesn't; should work on Windows too.
Same instructions.
Re: [Python] sabnma - Notify My Android PP script.
Posted: August 7th, 2014, 12:08 pm
by pechkin000
Sweetie, I just wanted to say thanks for a great script. It works flawlessly and it was exactly what I was looking for! Thanks
Re: [Python] sabnma - Notify My Android PP script.
Posted: October 14th, 2014, 1:14 pm
by nimbu
Thanks for a great script!
Just some things to add though please bear in mind I am no Linux guru.
I wanted to run this on my synology box and YMMV:
1) The location of the scripts folder for me was:
/usr/local/sabnzbd/var/scripts
2) Downloaded and followed the prep of files instructions
3) Used WinSCP to transfer the files to the above folder. Note you must login as root not Admin, though the passwords are the same.
4) Connect to the box using putty
5) changed the owner of the files and the pynma folder to the sabnzbd internal user that is created when you install the sabnzbd package:
chown sabnzbd sabnma.py
chown sabnzbd test.py
chown -R sabnzbd pynma/
6) I dont know if this is required but I made each of the scripts executable too:
chmod +X sabnma.py
chmod +X test.py
7) Assigned the script to my categories
Started off a test download, got my notification when it was done.
So once again, thanks for the script. I hope that the above might help someone else.
Re: [Python] sabnma - Notify My Android PP script.
Posted: March 26th, 2017, 8:46 pm
by extremepunk
Hi everyone
I have been following the insertion of this script as i have a NMA account
After putting my API into the script as suggested and point SABnzbd to the scripts folder successfully, upon running a test message the error i get is
"Notification script returned exit code -1 and output "Cannot run script /raid/NAS_Public/Scripts/sabnma.py "
Any ideas what this means
I am a complete newbie in terms of scripts
Actually sickbeard also shows "2017-03-30 17:14:30 SEARCHQUEUE-MANUAL-SEARCH :: NMA_Notifier: error 1 : [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed ()". Looks like something is broken on NMAs side