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
Postprocessing stopped working after re-installing freenas [SOLVED] (workaround)
Forum rules
Help us help you:
Help us help you:
- 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.
Postprocessing stopped working after re-installing freenas [SOLVED] (workaround)
Last edited by Tijlbert on May 17th, 2009, 9:00 am, edited 1 time in total.
Re: Postprocessing stopped working after re-installing freenas
Programming goof. "WindowsError" is not defined on non-Windows systems (duh).
Something goes wrong with your post-processing, but I cannot see what.
You can fix this more or less by removing "WindowsError".
So line 160 of newsunpack is now:
But it should read:
This will not solve the problem, but at least you will probably be able to see what goes wrong.
Something goes wrong with your post-processing, but I cannot see what.
You can fix this more or less by removing "WindowsError".
So line 160 of newsunpack is now:
Code: Select all
except WindowsError:
Code: Select all
except:
Re: Postprocessing stopped working after re-installing freenas [SOLVED] (workaround)
Thanks for the quick responce. I kept your code unedited and solved it by encapsulating it in an .sh file (as edited in the post). The funny thing is; It used to work so I thought I made a mistake during install.
btw. I didn't made the script but I'm a happy user
btbtw. That microsoft - pr line in my last post was a joke; you know that, right? (If you don't know what I'm talkin' about, nevermind:))
btw. I didn't made the script but I'm a happy user
btbtw. That microsoft - pr line in my last post was a joke; you know that, right? (If you don't know what I'm talkin' about, nevermind:))