Postprocessing stopped working after re-installing freenas [SOLVED] (workaround)
Posted: May 17th, 2009, 8:29 am
Hi, I'm having a problem which is probably not related to sabnzbd directly but here goes:
I use a script called 'media_process.py' which is mentioned elsewhere in this forum (it's the one with the xbmc updater). It used to work perfecty.
I reinstalled my freenas-os, after this Postprocessing stopped working.
The script itself still runs when I start it manually. When sab (v0.5.0alpha2) does it, it failes. This used to work on 0.5.0alpha2.
This is in the log:
2009-05-17 02:01:34,767::INFO::[newsunpack:154] Running external script /root/scripts/media_process.py(/mnt/transdata3/Downloads/TV/SomeCoolSeries.720p.HDTV.x264-aAF, SomeCoolSeries.720p.HDTV.x264-aAF, , tv, alt.binaries.multimedia, 0)
2009-05-17 02:01:34,873::ERROR::[postproc:421] Post Processing Failed for SomeCoolSeries.720p.HDTV.x264-aAF
2009-05-17 02:01:34,874::DEBUG::[postproc:422] Traceback:
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/sabnzbd/postproc.py", line 380, in run
script_log, script_ret = external_processing(script_path, workdir_complete, filename, msgid, dirname, cat, group, jobResult)
File "/usr/local/lib/python2.5/site-packages/sabnzbd/newsunpack.py", line 160, in external_processing
except WindowsError:
NameError: global name 'WindowsError' is not defined
EDIT:
When I make an .sh file which only does 'python media_process.py' it works!..
grz, Tijlbert
I use a script called 'media_process.py' which is mentioned elsewhere in this forum (it's the one with the xbmc updater). It used to work perfecty.
I reinstalled my freenas-os, after this Postprocessing stopped working.
The script itself still runs when I start it manually. When sab (v0.5.0alpha2) does it, it failes. This used to work on 0.5.0alpha2.
This is in the log:
2009-05-17 02:01:34,767::INFO::[newsunpack:154] Running external script /root/scripts/media_process.py(/mnt/transdata3/Downloads/TV/SomeCoolSeries.720p.HDTV.x264-aAF, SomeCoolSeries.720p.HDTV.x264-aAF, , tv, alt.binaries.multimedia, 0)
2009-05-17 02:01:34,873::ERROR::[postproc:421] Post Processing Failed for SomeCoolSeries.720p.HDTV.x264-aAF
2009-05-17 02:01:34,874::DEBUG::[postproc:422] Traceback:
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/sabnzbd/postproc.py", line 380, in run
script_log, script_ret = external_processing(script_path, workdir_complete, filename, msgid, dirname, cat, group, jobResult)
File "/usr/local/lib/python2.5/site-packages/sabnzbd/newsunpack.py", line 160, in external_processing
except WindowsError:
NameError: global name 'WindowsError' is not defined
EDIT:
When I make an .sh file which only does 'python media_process.py' it works!..
grz, Tijlbert