Trouble setting up SABnzbd on openSUSE 12.3

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • 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.
Post Reply
1cewolf
Newbie
Newbie
Posts: 4
Joined: April 27th, 2013, 3:27 pm

Trouble setting up SABnzbd on openSUSE 12.3

Post by 1cewolf »

Version: (Ex: 0.7.11)
OS: openSUSE 12.3
Install-type: Linux repository
Skin (if applicable): N/A
Firewall Software: OpenSUSE firewall
Are you using IPV6? (yes/no - most likely no) No
Is the issue reproducible? Yes

I searched for SABnzbd in software.opensuse.org and used the 1-click install to set it up:

S | Name | Type | Version | Arch | Repository
--+---------+---------+-------------+--------+-----------------
i | SABnzbd | package | 0.7.11-15.2 | noarch | home:bmanojlovic

From looking over an older tutorial, I'm apparently supposed to run SABnzbd.py that is located in the install directory. When I try to run it, I get this error message:

Traceback (most recent call last):
File "/usr/share/SABnzbd/SABnzbd.py", line 66, in <module>
import sabnzbd
File "/usr/share/SABnzbd/sabnzbd/__init__.py", line 72, in <module>
from sabnzbd.nzbqueue import NzbQueue
File "/usr/share/SABnzbd/sabnzbd/nzbqueue.py", line 28, in <module>
from sabnzbd.nzbstuff import NzbObject
File "/usr/share/SABnzbd/sabnzbd/nzbstuff.py", line 40, in <module>
from sabnzbd.misc import to_units, cat_to_opts, cat_convert, sanitize_foldername, \
File "/usr/share/SABnzbd/sabnzbd/misc.py", line 45, in <module>
import sabnzbd.growler as growler
File "/usr/share/SABnzbd/sabnzbd/growler.py", line 33, in <module>
from gntp import GNTPRegister
ImportError: cannot import name GNTPRegister

This happens whether I try to run it as a regular user or root.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Trouble setting up SABnzbd on openSUSE 12.3

Post by sander »

Go into the directory that contains SABnzbd.py, and then compare with the commands / output below.

Code: Select all

sander@flappie:~/git-sab/sabnzbd$ ll SABnzbd.py 
-rwxrwxr-x 1 sander sander 67078 apr 14 09:03 SABnzbd.py*
sander@flappie:~/git-sab/sabnzbd$ 
sander@flappie:~/git-sab/sabnzbd$ python
Python 2.7.4 (default, Apr 19 2013, 18:28:01) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gntp import GNTPRegister
>>> 
sander@flappie:~/git-sab/sabnzbd$ ll gntp/
total 88
drwxrwxr-x  2 sander sander  4096 apr  8 21:40 ./
drwxrwxr-x 19 sander sander  4096 apr 14 09:03 ../
-rw-rw-r--  1 sander sander 13824 apr  4 19:50 __init__.py
-rw-rw-r--  1 sander sander 17462 apr  8 21:40 __init__.pyc
-rw-rw-r--  1 sander sander 14500 apr  4 19:51 __init__.pyo
-rw-rw-r--  1 sander sander  7789 apr  4 19:50 notifier.py
-rw-rw-r--  1 sander sander  8387 apr  8 21:40 notifier.pyc
-rw-rw-r--  1 sander sander  6161 apr  4 19:51 notifier.pyo
sander@flappie:~/git-sab/sabnzbd$

sander@flappie:~/git-sab/sabnzbd$ grep GNTPRegister gntp/*
gntp/__init__.py:class GNTPRegister(_GNTPBase):
gntp/__init__.py:		return GNTPRegister(data, password=password)
Binary file gntp/__init__.pyc matches
Binary file gntp/__init__.pyo matches
gntp/notifier.py:		register = gntp.GNTPRegister()
Binary file gntp/notifier.pyc matches
Binary file gntp/notifier.pyo matches
sander@flappie:~/git-sab/sabnzbd$ 
HTH
1cewolf
Newbie
Newbie
Posts: 4
Joined: April 27th, 2013, 3:27 pm

Re: Trouble setting up SABnzbd on openSUSE 12.3

Post by 1cewolf »

honor@Lucan:/usr/share/SABnzbd> ll SABnzbd.py
-rwxr-xr-x 1 root root 65666 Apr 3 09:13 SABnzbd.py
honor@Lucan:/usr/share/SABnzbd> python
Python 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gntp import GNTPRegister
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name GNTPRegister
>>>
honor@Lucan:/usr/share/SABnzbd> ll gntp/
ls: cannot access gntp/: No such file or directory
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Trouble setting up SABnzbd on openSUSE 12.3

Post by sander »

Oh. Let's take another approach

From http://sabnzbd.org/download/ download the python source version into your home directory and unpack it. Open a terminal, go into the directory, and type

Code: Select all

./SABnzbd.py
or

Code: Select all

python SABnzbd.py
Does that work?
1cewolf
Newbie
Newbie
Posts: 4
Joined: April 27th, 2013, 3:27 pm

Re: Trouble setting up SABnzbd on openSUSE 12.3

Post by 1cewolf »

It started without a hitch. I guess I'll move to to my server folder and modify the init.d file the packaged installation came with so it points to the right location.

Is it considered safe to run SABnzbd as your normal login user? Would it be better to run it as its own separate user? I guess the only problem regardless is working out permissions. I've currently got my SSL certificates set to ownership by root, so I’ve got to think of a way around that.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Trouble setting up SABnzbd on openSUSE 12.3

Post by sander »

It seems you know what you're doing, so if you want a separate user for SAB, you can do that.

Back to the original problem: Can you try to find the gntp directory and its contents on your system. Because I wonder why it is not there: mistake by the packager, something wrong during the install, wrong path, ...
1cewolf
Newbie
Newbie
Posts: 4
Joined: April 27th, 2013, 3:27 pm

Re: Trouble setting up SABnzbd on openSUSE 12.3

Post by 1cewolf »

There's a list of files that come with a package in YaST, and I don't see the GNTP directory listed anywhere. I guess it must be a mistake by the packager.

But what's particularly unusual about this is that there are two repositories for sabnzbd in OpenSUSE Software and both of them have this problem.
Post Reply