{"action":"created","issue":{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/707","labels_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/707/labels{/name}","comments_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/707/comments","events_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/707/events","html_url":"https://github.com/clinton-hall/nzbToMedia/issues/707","id":57899534,"number":707,"title":"SABNZBD Issue - Exit(-1) Cannot run script ","user":{"login":"computerconsulting","id":11041839,"avatar_url":"https://avatars.githubusercontent.com/u/11041839?v=3","gravatar_id":"","url":"https://api.github.com/users/computerconsulting","html_url":"https://github.com/computerconsulting","followers_url":"https://api.github.com/users/computerconsulting/followers","following_url":"https://api.github.com/users/computerconsulting/following{/other_user}","gists_url":"https://api.github.com/users/computerconsulting/gists{/gist_id}","starred_url":"https://api.github.com/users/computerconsulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/computerconsulting/subscriptions","organizations_url":"https://api.github.com/users/computerconsulting/orgs","repos_url":"https://api.github.com/users/computerconsulting/repos","events_url":"https://api.github.com/users/computerconsulting/events{/privacy}","received_events_url":"https://api.github.com/users/computerconsulting/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/labels/External/Dependency%20Issue","name":"External/Dependency Issue","color":"02d7e1"},{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-17T09:08:57Z","updated_at":"2015-02-17T12:08:00Z","closed_at":null,"body":"Hi Clinton,\r\n\r\nLike the work you do on the various packages. \r\n\r\nI was wondering if you could help in determining why the CharTranslator.py script (which is in the SABNZBD package) executes with an Exit(-1) error within SABNZBD on a QNAP TS-670. Note that All other scripts (sabTo SickBeard.py) work perfectly.\r\n\r\nProblem\r\n----------\r\nA new installation was required of Sickbeard, SABNZBD etc after it was found that QNAP had an issue with Twonky installation process that impacted firmware upgrade \r\n\r\nAfter re-installing Python 2.7, SAB and Sickbeard and completing configs the following occurs only for the CharTranslator.py script\r\n\r\n\"Exit (-1) Cannot run script /share/Download/nzbToMedia/CharTranslator.py\"\r\n\r\nAttempted Solutions & Verification's:\r\n---------------------------------------------\r\n1)\tChecked that the sab scripts folder is correct -  Post-Processing Scripts Folder: /share/Download/nzbToMedia (Both CharTranslator.py, sabToSickBeard.py)\r\n2)\tMade sure that a copy of CharTranslator.py was moved from the Qpackage install to /share/Download/nzbToMedia and that the linked file of CharTranslator.py was removed\r\n3)\tSet chmod 777 on /share/Download/nzbToMedia/ CharTranslator.py\r\n4)\tExecuted /share/Download/nzbToMedia/ CharTranslator.py on the command line against a download NZB… RESULT Works:\r\n\r\nCommand: python /share/Download/nzbToMedia/CharTranslator.py /share/Entertainment/Downloads/Complete/aaaa.S02E03.HDTV.x264-RiVER\r\n\r\nCurrent folder is /share/CACHEDEV2_DATA/Entertainment/Downloads/Complete/aaaa.S02E03.HDTV.x264-RiVER\r\nRenaming destination folder to UTF-8 format...\r\n/share/CACHEDEV2_DATA/Entertainment/Downloads/Complete/aaaa.S02E03.HDTV.x264-RiVER -> No special characters detected: Nothing to be done\r\nDestination folder renamed !\r\n\r\nRenaming folders to UTF-8 format...\r\nFolder renaming Done !\r\n\r\nRenaming files to UTF-8 format...\r\n./aaaa.s02e03.hdtv.x264-river.sfv -> No special characters detected: Nothing to be done\r\n./aaaa.s02e03.hdtv.x264-river.srr -> No special characters detected: Nothing to be done\r\n./Aaaa.S02E03.HDTV.x264-RiVER.nzb -> No special characters detected: Nothing to be done\r\n./aaaa.s02e03.hdtv.x264-river.nfo -> No special characters detected: Nothing to be done\r\n./aaaa.s02e03.hdtv.x264-river.mp4 -> No special characters detected: Nothing to be done\r\nFiles renaming Done !\r\n\r\n\r\nCharacter encoding translation done!\r\n"},"comment":{"url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/comments/74658171","html_url":"https://github.com/clinton-hall/nzbToMedia/issues/707#issuecomment-74658171","issue_url":"https://api.github.com/repos/clinton-hall/nzbToMedia/issues/707","id":74658171,"user":{"login":"computerconsulting","id":11041839,"avatar_url":"https://avatars.githubusercontent.com/u/11041839?v=3","gravatar_id":"","url":"https://api.github.com/users/computerconsulting","html_url":"https://github.com/computerconsulting","followers_url":"https://api.github.com/users/computerconsulting/followers","following_url":"https://api.github.com/users/computerconsulting/following{/other_user}","gists_url":"https://api.github.com/users/computerconsulting/gists{/gist_id}","starred_url":"https://api.github.com/users/computerconsulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/computerconsulting/subscriptions","organizations_url":"https://api.github.com/users/computerconsulting/orgs","repos_url":"https://api.github.com/users/computerconsulting/repos","events_url":"https://api.github.com/users/computerconsulting/events{/privacy}","received_events_url":"https://api.github.com/users/computerconsulting/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T12:08:00Z","updated_at":"2015-02-17T12:08:00Z","body":"QNAP Python 2.7 from APP centre as per the directions on the web page to download.\r\nhttp://forum.qnap.com/viewtopic.php?f=133&t=86644\r\n\r\nCommand line verification:\r\n---------------------------------\r\n[/] # python\r\nPython 2.7 (r27:82500, Aug 21 2010, 07:52:47)\r\n[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>>\r\n\r\nOther Verifications\r\n------------------------\r\nps -ef on python\r\n\r\n 1236 admin     63768 S   /usr/bin/python2.7 SABnzbd.py -f /share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/Config/sabnzbd.ini --daemon --pid /tmp\r\n15716 admin     30352 S   python /KVM/opt/htdocs/webvirtmgr/lib/TaskDaemon.py\r\n15983 admin     28624 S   python /KVM/opt/htdocs/webvirtmgr/noVNC/utils/websockify.py --cert=/KVM/opt/conf/server.crt --target-config=/share/CACHEDEV1_DATA/.qpkg/.QKVM/tmp/sunsto\r\n26832 admin       548 S   grep python\r\n26952 admin     40248 S   /usr/bin/python2.7 /share/CACHEDEV1_DATA/.qpkg/SickBeard/SickBeard/SickBeard.py --daemon --datadir /share/CACHEDEV1_DATA/.qpkg/SickBeard/config --pidfil\r\n\r\nThe original python was removed due to firmware problem. Thats' not to say something was left over. Here is a \"find\" and ls -l list. They all seem to point to python2.7\r\n\r\n[/] # find -name python\r\n./usr/local/bin/python\r\n./usr/bin/python\r\n./mnt/ext/opt/Python/bin/python\r\n./share/CE_CACHEDEV3_DATA/my name/NetBakData/my name@pc/VistaProfileData/AppData/Roaming/CouchPotato/cache/python\r\n./share/CACHEDEV1_DATA/.qpkg/Python/bin/python\r\n./share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/Repository/lib/python\r\n./share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/x31/python\r\n./share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/x86/bin-utils/python\r\n./share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/x86/python\r\n./share/CACHEDEV1_DATA/.qpkg/SABnzbdplus/arm/python\r\n./share/CACHEDEV1_DATA/.qpkg/SickBeard/Repository/lib/python\r\n./share/CACHEDEV1_DATA/.qpkg/SickBeard/x31/python\r\n./share/CACHEDEV1_DATA/.qpkg/SickBeard/x86/python\r\n./share/CACHEDEV1_DATA/.qpkg/SickBeard/arm/python\r\n./share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Python/bin/python\r\n\r\n[/usr/local/bin] # ll python\r\nlrwxrwxrwx    1 admin    administ        30 Feb 16 13:34 python -> /mnt/ext/opt/Python/bin/python*\r\n[/usr/local/bin] # cd /mnt/ext/opt/Python/bin\r\n[/mnt/ext/opt/Python/bin] # ll python\r\nlrwxrwxrwx    1 admin    administ         7 Feb 16 13:34 python -> python2*\r\n[/mnt/ext/opt/Python/bin] # ll python*\r\nlrwxrwxrwx    1 admin    administ         7 Feb 16 13:34 python -> python2*\r\nlrwxrwxrwx    1 admin    administ         9 Feb 16 13:34 python2 -> python2.7*\r\n-rwxr-xr-x    1 admin    administ      3.6k Jan 26 20:26 python2.7*\r\n[/mnt/ext/opt/Python/bin] # cd /usr/bin\r\n[/usr/bin] # ll python\r\nlrwxrwxrwx    1 admin    administ        45 Feb 16 20:31 python -> /share/CACHEDEV1_DATA/.qpkg/Python/bin/python*\r\n[/usr/bin] #\r\n\r\n\r\nPlease advise if you need more information."}}