Page 1 of 2

Problem Starting Up SAB on Debian

Posted: January 30th, 2011, 2:24 pm
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!

Re: Problem Starting Up SAB on Debian

Posted: January 30th, 2011, 4:23 pm
by shypike
How did you update it?

Re: Problem Starting Up SAB on Debian

Posted: January 30th, 2011, 5:15 pm
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.

Re: Problem Starting Up SAB on Debian

Posted: January 30th, 2011, 6:48 pm
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!

Re: Problem Starting Up SAB on Debian

Posted: January 30th, 2011, 6:55 pm
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!

Re: Problem Starting Up SAB on Debian

Posted: January 30th, 2011, 7:14 pm
by sander
Can you delete, and then install & run SAB 0.5.6?

Re: Problem Starting Up SAB on Debian

Posted: January 30th, 2011, 9:20 pm
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!

Re: Problem Starting Up SAB on Debian

Posted: January 31st, 2011, 1:26 am
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/


Re: Problem Starting Up SAB on Debian

Posted: January 31st, 2011, 3:02 am
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

Re: Problem Starting Up SAB on Debian

Posted: January 31st, 2011, 3:31 am
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$ 

Re: Problem Starting Up SAB on Debian

Posted: February 1st, 2011, 1:04 pm
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/

Re: Problem Starting Up SAB on Debian

Posted: February 1st, 2011, 1:19 pm
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.

Re: Problem Starting Up SAB on Debian

Posted: February 1st, 2011, 3:38 pm
by shypike
If you just unpack our tar.gz distribution file in a convenient folder
and start SABnzbd from there, it should just work.

Re: Problem Starting Up SAB on Debian

Posted: February 2nd, 2011, 12:00 pm
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.

Re: Problem Starting Up SAB on Debian

Posted: February 2nd, 2011, 1:26 pm
by shypike
The file sabnzbd/utils/__init__.py is part of the tar.gz distribution.
I have my doubts about your unpacking program.