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)
[Python] sabnma - Notify My Android PP script.
Re: [Python] sabnma - Notify My Android PP script.
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.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)
If all else fails, maybe consider moving scripts into your sabnzbd directory.
Re: [Python] sabnma - Notify My Android PP script.
I had the same problem, i fixed it by changing the python line according to my install in this case:
Read more on this: http://forums.sabnzbd.org/viewtopic.php?t=10595
Code: Select all
#!/usr/local/python/bin/python2 -OO
Re: [Python] sabnma - Notify My Android PP script.
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:
Do you think this could be because I have python 2.7 installed?
however my new error is:
I am using the line you suggested:Unknown option: -
usage: /usr/local/python/bin/python2 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
#!/usr/local/python/bin/python2 -OO
Re: [Python] sabnma - Notify My Android PP script.
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.
It doesn't; should work on Windows too.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?
Same instructions.
-
- Newbie
- Posts: 1
- Joined: August 7th, 2014, 12:05 pm
Re: [Python] sabnma - Notify My Android PP script.
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.
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.
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.
-
- Newbie
- Posts: 6
- Joined: February 1st, 2015, 2:27 am
Re: [Python] sabnma - Notify My Android PP script.
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
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