You are not logged in.

#1 2011-01-21 20:10:48

sisco88
Member
Registered: 2011-01-21
Posts: 6

Problems installing sabnzbd [SOLVED]

Hi, there!

I'm a new arch linux user and am having some problems trying to install sabnzbd. i installed the package from the aur and also all dependency's. now when i try to run sabnzbd doing this:

sabnzbd

i get the following message returned:

The following modules need to be installed: Cheetah, cherrypy(included, unpack the zip), sqlite(if python2 2.4)

and i'm pretty sure these are installed:

[sisco88@DIKKEPWN sabnzbd]$ pacman -Q | grep cheetah
python-cheetah 2.4.4-1
[sisco88@DIKKEPWN sabnzbd]$ pacman -Q | grep cherry
cherrypy 3.1.2-3
cherrypy2 2.3.0-2
[sisco88@DIKKEPWN sabnzbd]$ pacman -Q | grep sqlite
lib32-sqlite3 3.6.23.1-1
sqlite3 3.7.4-1

So what's the problem here?

EDIT:

So after doing

sudo pacman -Su

different errors like this show up

[sisco88@DIKKEPWN sabnzbd]$ sabnzbd 
  File "/opt/sabnzbd/SABnzbd.py", line 20
    print "Sorry, requires Python 2.4 or higher."
                                                ^
SyntaxError: invalid syntax

[sisco88@DIKKEPWN ~]$ sabnzbd 
  File "/opt/sabnzbd/SABnzbd.py", line 37
    print "Sorry, requires Python module Cheetah 2.0rc7 or higher."
                                                                  ^
SyntaxError: invalid syntax

does this have anything to do with having a too new version of python installed? because after the upgrade is do this:

pacman -Qi python

wich gives me this:

[sisco88@DIKKEPWN sabnzbd]$ pacman -Qi python
Name           : python
Version        : 3.1.3-1
URL            : http://www.python.org
Licenses       : custom
Groups         : None
Provides       : python3
Depends On     : expat  bzip2  gdbm  openssl  libffi  zlib
Optional Deps  : tk: for tkinter
Required By    : None
Conflicts With : None
Replaces       : python3
Installed Size : 66452.00 K
Packager       : Unknown Packager
Architecture   : x86_64
Build Date     : Wed 01 Dec 2010 01:28:14 PM CET
Install Date   : Fri 21 Jan 2011 09:14:44 PM CET
Install Reason : Installed as a dependency for another package
Install Script : No
Description    : Next generation of the python high-level scripting language

EDIT: cant remember what file i had to edit but all i had to do was change
"python" to "python2" on a line.

Last edited by sisco88 (2011-01-22 14:16:02)

Offline

#2 2011-01-29 20:20:48

Fitzwilliam
Member
Registered: 2010-12-23
Posts: 21

Re: Problems installing sabnzbd [SOLVED]

I'm having this EXACT issue.  I can't figure out which file I need to edit to make SABnzbd+ run as a Python2 program rather than PythonWhateverVersionIt'sUsing.  At this point, I've "fixed" the problem by making an alias that runs the SABnzbd.py script directly, but that's not optimal because: 1) I don't know how to make a Python script into a daemon without breaking my computer, and 2) it's just messy.  From a previous Arch install, I know it's a really simple edit to one file, but I can't figure out which one; it almost looks as if it's not even there anymore.  I use this program nearly every day, and I'd appreciate any help on this one.

Last edited by Fitzwilliam (2011-01-29 20:22:08)

Offline

#3 2011-01-30 19:08:20

eerok
Member
From: Canada
Registered: 2005-03-20
Posts: 171

Re: Problems installing sabnzbd [SOLVED]

Fitzwilliam wrote:

I can't figure out which file I need to edit to make SABnzbd+ run as a Python2 program

The file is /usr/bin/sabnzbd

Change the invocation of "python" to "python2".

You need to do this every time you upgrade sabnzbd.


noobus in perpetuus

Offline

#4 2011-01-30 19:42:14

Fitzwilliam
Member
Registered: 2010-12-23
Posts: 21

Re: Problems installing sabnzbd [SOLVED]

Thank you so much, eerok.  That was driving me insane.

Offline

Board footer

Powered by FluxBB