Problem Starting Up SAB on Debian

Support for the Debian/Ubuntu package, created by JCFP.
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.
WarezMyGF
Release Testers
Release Testers
Posts: 16
Joined: August 21st, 2010, 3:38 pm

Problem Starting Up SAB on Debian

Post by WarezMyGF »

My seedbox was running SAB perfectly until I decided to update it.

Now when I try to start it, it gives me this error:

python SABnzbd.py
Traceback (most recent call last):
  File "SABnzbd.py", line 66, in
    import sabnzbd
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/__init__.py", line 66, in
    import sabnzbd.nzbqueue as nzbqueue
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/nzbqueue.py", line 29, in
    from sabnzbd.nzbstuff import NzbObject
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/nzbstuff.py", line 37, in
    import sabnzbd.misc
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/misc.py", line 39, in
    import sabnzbd.config as config
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/config.py", line 27, in
    from sabnzbd.utils import listquote
ImportError: No module named utils


I even deleted the entire directly and started from scratch, but same thing.

Any suggestions?

Thanks!
SABnzbd v0.6.0 Alpha 10 w/ Windows 2008 Server R2

Server Specs: i3 530 | Asus P7H55D-M EVO | 2GB Crucial DDR3 | 8TB of Storage
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Problem Starting Up SAB on Debian

Post by shypike »

How did you update it?
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Problem Starting Up SAB on Debian

Post by sander »

I think you tried to upgrade from 0.5.x (or earlier) to 0.6.0 alpha, as (AFAIK) SAB went from a "utils" directory to "util" directory and I see the error message "ImportError: No module named utils".

So your setup looks like a mix of 0.5.x and 0.6.0. My guess is that you're running a SABnzbd.py from 0.5.x in a 0.6.0 directory structure. Not good. Solution: really, really delete the SAB directory and SAB-files lying elsewhere on your system (maybe in /usr/bin), and install one SAB version.
Last edited by sander on January 30th, 2011, 6:54 pm, edited 1 time in total.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
WarezMyGF
Release Testers
Release Testers
Posts: 16
Joined: August 21st, 2010, 3:38 pm

Re: Problem Starting Up SAB on Debian

Post by WarezMyGF »

My friend is actually the one that updated it, as we are sharing the seedbox. He said he deleted everything where SAB was installed and copied over everything from the new SAB. I don't have access to the usr/ folder. I will delete all SABnzbd related folders and start from scratch for v0.6.0 Alpha 10.

Thanks!
SABnzbd v0.6.0 Alpha 10 w/ Windows 2008 Server R2

Server Specs: i3 530 | Asus P7H55D-M EVO | 2GB Crucial DDR3 | 8TB of Storage
WarezMyGF
Release Testers
Release Testers
Posts: 16
Joined: August 21st, 2010, 3:38 pm

Re: Problem Starting Up SAB on Debian

Post by WarezMyGF »

Just deleted entire SABnzbd folder which was installed in private/SABnzbd and also .sabnzbd folder which was in the Home directory.

I still get the same error log:

./SABnzbd.py
Traceback (most recent call last):
  File "./SABnzbd.py", line 65, in
    import sabnzbd.lang
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/__init__.py", line 65, in
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/nzbqueue.py", line 29, in
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/nzbstuff.py", line 40, in
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/misc.py", line 39, in
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/config.py", line 27, in
ImportError: No module named utils

I also tried chmod 0755 SABnzbd.py. Before doing chmod 0755 it gave me "Permission denied." error. Any other fixes? Would I need to contact admin to delete any traces of SAB in the "/usr/bin" folder?

Thanks!
SABnzbd v0.6.0 Alpha 10 w/ Windows 2008 Server R2

Server Specs: i3 530 | Asus P7H55D-M EVO | 2GB Crucial DDR3 | 8TB of Storage
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Problem Starting Up SAB on Debian

Post by sander »

Can you delete, and then install & run SAB 0.5.6?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
WarezMyGF
Release Testers
Release Testers
Posts: 16
Joined: August 21st, 2010, 3:38 pm

Re: Problem Starting Up SAB on Debian

Post by WarezMyGF »

sander wrote: Can you delete, and then install & run SAB 0.5.6?
Just deleted all SAB data and get the same thing with 0.5.6 final.

./SABnzbd.py -s 0.0.0.0:54374
Traceback (most recent call last):
  File "./SABnzbd.py", line 66, in
    import sabnzbd
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/__init__.py", line 66, in
    import sabnzbd.nzbqueue as nzbqueue
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/nzbqueue.py", line 29, in
    from sabnzbd.nzbstuff import NzbObject
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/nzbstuff.py", line 37, in
    import sabnzbd.misc
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/misc.py", line 39, in
    import sabnzbd.config as config
  File "/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/config.py", line 27, in
    from sabnzbd.utils import listquote
ImportError: No module named utils

Maybe should I ask admin to reboot my slice?

Thanks!
SABnzbd v0.6.0 Alpha 10 w/ Windows 2008 Server R2

Server Specs: i3 530 | Asus P7H55D-M EVO | 2GB Crucial DDR3 | 8TB of Storage
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Problem Starting Up SAB on Debian

Post by sander »

Does your setup have a directory named

/media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/utils/


check with

Code: Select all

ls -al /media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/utils/

If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
WarezMyGF
Release Testers
Release Testers
Posts: 16
Joined: August 21st, 2010, 3:38 pm

Re: Problem Starting Up SAB on Debian

Post by WarezMyGF »

Dear Sander,

It does have that folder. Here are the results of the command. I really appreciate you trying to help me out!

ls -al /media/sde1/home/warezmygf/private/sabnzbd/sabnzbd/utils/
total 336
drwxr-xr-x 2 warezmygf warezmygf  4096 2011-01-31 02:18 .
drwxr-xr-x 3 warezmygf warezmygf  4096 2011-01-31 02:19 ..
-rw-r--r-- 1 warezmygf warezmygf  2892 2011-01-31 02:18 certgen.py
-rw-r--r-- 1 warezmygf warezmygf  87476 2011-01-31 02:18 configobj.py
-rw-r--r-- 1 warezmygf warezmygf 122933 2011-01-31 02:18 feedparser.py
-rw-r--r-- 1 warezmygf warezmygf  3450 2011-01-31 02:18 json.py
-rw-r--r-- 1 warezmygf warezmygf  19772 2011-01-31 02:18 kronos.py
-rw-r--r-- 1 warezmygf warezmygf  29511 2011-01-31 02:18 listquote.py
-rw-r--r-- 1 warezmygf warezmygf  2302 2011-01-31 02:18 osx.py
-rw-r--r-- 1 warezmygf warezmygf  16196 2011-01-31 02:18 rarfile.py
-rw-r--r-- 1 warezmygf warezmygf  11573 2011-01-31 02:18 rsslib.py
-rw-r--r-- 1 warezmygf warezmygf  3978 2011-01-31 02:18 servertests.py
-rw-r--r-- 1 warezmygf warezmygf  5833 2011-01-31 02:18 ssmtplib.py
-rw-r--r-- 1 warezmygf warezmygf  2611 2011-01-31 02:18 upload.py
SABnzbd v0.6.0 Alpha 10 w/ Windows 2008 Server R2

Server Specs: i3 530 | Asus P7H55D-M EVO | 2GB Crucial DDR3 | 8TB of Storage
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Problem Starting Up SAB on Debian

Post by sander »

Below you see mine. Don't mind the .po files.

Don't you have the __init__.py file in utils? I believe that's needed to make a .py file importable.


Code: Select all

sander@lifebook:~/oud-SABnzbd-0.5.6/sabnzbd/utils$ ls -al
total 548
drwxr-xr-x 2 sander sander   4096 2011-01-31 07:22 .
drwxr-xr-x 3 sander sander   4096 2011-01-31 07:22 ..
-rw-r--r-- 1 sander sander   2892 2010-11-15 21:54 certgen.py
-rw-r--r-- 1 sander sander  87476 2010-11-15 21:54 configobj.py
-rw-r--r-- 1 sander sander  48721 2011-01-31 07:22 configobj.pyo
-rw-r--r-- 1 sander sander 122933 2010-11-15 21:54 feedparser.py
-rw-r--r-- 1 sander sander  96435 2011-01-31 07:22 feedparser.pyo
-rw-r--r-- 1 sander sander      0 2010-11-15 21:54 __init__.py
-rw-r--r-- 1 sander sander    139 2011-01-31 07:22 __init__.pyo
-rw-r--r-- 1 sander sander   3450 2010-11-15 21:54 json.py
-rw-r--r-- 1 sander sander   2697 2011-01-31 07:22 json.pyo
-rw-r--r-- 1 sander sander  19772 2010-11-15 21:54 kronos.py
-rw-r--r-- 1 sander sander  17669 2011-01-31 07:22 kronos.pyo
-rw-r--r-- 1 sander sander  29511 2010-11-15 21:54 listquote.py
-rw-r--r-- 1 sander sander   9052 2011-01-31 07:22 listquote.pyo
-rw-r--r-- 1 sander sander   2302 2010-11-15 21:54 osx.py
-rw-r--r-- 1 sander sander   1531 2011-01-31 07:22 osx.pyo
-rw-r--r-- 1 sander sander  16196 2010-11-15 21:54 rarfile.py
-rw-r--r-- 1 sander sander  14336 2011-01-31 07:22 rarfile.pyo
-rw-r--r-- 1 sander sander  11573 2010-11-15 21:54 rsslib.py
-rw-r--r-- 1 sander sander   7022 2011-01-31 07:22 rsslib.pyo
-rw-r--r-- 1 sander sander   3978 2010-11-15 21:54 servertests.py
-rw-r--r-- 1 sander sander   2999 2011-01-31 07:22 servertests.pyo
-rw-r--r-- 1 sander sander   5833 2010-11-15 21:54 ssmtplib.py
-rw-r--r-- 1 sander sander   2952 2011-01-31 07:22 ssmtplib.pyo
-rw-r--r-- 1 sander sander   2611 2010-11-15 21:54 upload.py
sander@lifebook:~/oud-SABnzbd-0.5.6/sabnzbd/utils$ 
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
WarezMyGF
Release Testers
Release Testers
Posts: 16
Joined: August 21st, 2010, 3:38 pm

Re: Problem Starting Up SAB on Debian

Post by WarezMyGF »

That file is not in utils, it is located in sabnzbd/sabnzbd/.

I copied it over and the same error messages. I am out of ideas. :c/
SABnzbd v0.6.0 Alpha 10 w/ Windows 2008 Server R2

Server Specs: i3 530 | Asus P7H55D-M EVO | 2GB Crucial DDR3 | 8TB of Storage
WarezMyGF
Release Testers
Release Testers
Posts: 16
Joined: August 21st, 2010, 3:38 pm

Re: Problem Starting Up SAB on Debian

Post by WarezMyGF »

I just copied back the original version (.60 Alpha 9) and it is working like a charm!

Makes no sense, guess I"ll just keep it at 9.
SABnzbd v0.6.0 Alpha 10 w/ Windows 2008 Server R2

Server Specs: i3 530 | Asus P7H55D-M EVO | 2GB Crucial DDR3 | 8TB of Storage
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Problem Starting Up SAB on Debian

Post by shypike »

If you just unpack our tar.gz distribution file in a convenient folder
and start SABnzbd from there, it should just work.
WarezMyGF
Release Testers
Release Testers
Posts: 16
Joined: August 21st, 2010, 3:38 pm

Re: Problem Starting Up SAB on Debian

Post by WarezMyGF »

shypike wrote: If you just unpack our tar.gz distribution file in a convenient folder
and start SABnzbd from there, it should just work.
This is what I have been doing. It worked like a charm the first time with .60 Alpha 9. No idea why Alpha 10 or .56 are not working. :c/

I'm just going to keep it as it is for now.
SABnzbd v0.6.0 Alpha 10 w/ Windows 2008 Server R2

Server Specs: i3 530 | Asus P7H55D-M EVO | 2GB Crucial DDR3 | 8TB of Storage
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Problem Starting Up SAB on Debian

Post by shypike »

The file sabnzbd/utils/__init__.py is part of the tar.gz distribution.
I have my doubts about your unpacking program.
Post Reply