So here's my situation: I have a box running fBSD which I have been using for a while to host media, etc. When I recently ran "portupgrade -a" I installed the most recent release of SABnzbd. Now I am having issues with getting it up and running.
I have tried running a
Code: Select all
# make deinstall clean
# make reinstall clean
This time, however, I am getting an error:
Code: Select all
root@server [sabnzbd] $/usr/local/etc/rc.d/sabnzbd start
The Python module Cheetah is required
Starting sabnzbd.
root@server [sabnzbd] $
So I have narrowed this down to a bit of code in SABnzbd.py:
Code: Select all
try:
import Cheetah
if Cheetah.Version[0] != '2':
raise ValueError
except ValueError:
print "Sorry, requires Python module Cheetah 2.0rc7 or higher."
sys.exit(1)
except:
print "The Python module Cheetah is required"
sys.exit(1)
You'd think so, but when I try to do these commands manually:
Code: Select all
root@server [sabnzbd] $python
Python 2.7.2 (default, Mar 16 2012, 08:47:13)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import Cheetah
>>> Cheetah.Version[0]
'2'
>>>
Could somebody please give me some guidance on this? It's really killing me that I have no idea where to turn.
EDIT: Also, while waiting for some help, I tried to comment out the try/except portion of the program, and that did absolutely nothing for me. I wonder if somewhere a different version of the file is being called... One that uses a different version of python, maybe? Just speculation. :-)
Also, I was sure to back up the SABnzbd.py file so I wouldn't mess anything up, in case you're wondering.
UPDATE: Frost in the IRC channel pointed me to the init (rc.d) script and I realized that the problem occurred *only* when python (same version - 2.7) was run as the _sabnzbd user. I am currently trying to figure out why in the world this user wouldn't have access to the module though others do... Any pointers would be greatly appreciated.