Page 1 of 1

Cannot install sabnzbd because of missing cheetah | NSLU2 | unslung

Posted: August 26th, 2008, 5:17 pm
by Verband
Hi,

I am trying to install sabnzbd on an NSLU2 with unslung 6.10 Beta running on it.
When I am trying to make it run via python SABnzbd.py i get:

Sorry, requires Python module Cheetah 2.0rc7 or higher.

I entered b4

ipkg update
ipkg install coreutils
ipkg install python
ipkg install py24-cheetah
ipkg install py24-cherrypy
ipkg install py24-elementtree
ipkg install py24-celementtree
ipkg install py24-yenc
ipkg install unrar
ipkg install unzip
ipkg install par2cmdline
ipkg install perl

Thus, it should be installed. Anyways, when trying to import cheetah into python I get:

>>> import cheetah
Traceback (most recent call last):
  File "", line 1, in
ImportError: No module named cheetah

I get the same with cherrypy btw, havent yet tried the other packages. Can anyone tell me what I did wrong so python can't get that stuff importet ?

Thanks 4 help.

Re: Cannot install sabnzbd because of missing cheetah | NSLU2 | unslung

Posted: August 26th, 2008, 5:50 pm
by switch
Type "python" into your shell, what version does it say is running?

Try typing "python2.4" into your shell then trying import cheetah

Re: Cannot install sabnzbd because of missing cheetah | NSLU2 | unslung

Posted: August 26th, 2008, 7:10 pm
by Verband
Gives me

# python
Python 2.5.2 (r252:60911, Feb 26 2008, 19:39:13)
[GCC 3.3.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


# python2.4
Python 2.4.5 (#1, Mar 12 2008, 20:24:46)
[GCC 3.3.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cheetah
Traceback (most recent call last):
  File "", line 1, in ?
ImportError: No module named cheetah
>>>

Re: Cannot install sabnzbd because of missing cheetah | NSLU2 | unslung

Posted: August 26th, 2008, 7:16 pm
by switch
Sorry, forgot a capital letter, try:

Code: Select all

python2.4
import Cheetah
If that works, run sabnzbd like so:

Code: Select all

python2.4 SABnzbd.py -s :8080 -d
(might need the -f flag to point to your sabnzbd.ini too)

Re: Cannot install sabnzbd because of missing cheetah | NSLU2 | unslung

Posted: August 27th, 2008, 1:38 am
by shypike
# python
Python 2.5.2 (r252:60911, Feb 26 2008, 19:39:13)
[GCC 3.3.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
You have Python 2.5 installed, which is the default Python for your system.

But you installed packages for Python 2.4:
ipkg install py24-cheetah
ipkg install py24-cherrypy
ipkg install py24-elementtree
ipkg install py24-celementtree
ipkg install py24-yenc

Install the 2.5 packages also or use "python2.4" to start SABnzbd.

Re: Cannot install sabnzbd because of missing cheetah | NSLU2 | unslung

Posted: August 27th, 2008, 2:20 am
by Verband
Its working, thanks for your help.
Importing Cheetah on python2.4 worked, so I went back installing the python2.5 packages.

awesone ;)