Page 1 of 1

Help needed setting up 0.5.2 on my NAS (DNS-323)

Posted: May 24th, 2010, 11:12 am
by Hitcher
Hi, total noob here so please be gentle.

I've just got myself a DNS-323 and have been following this guide (https://forums.sabnzbd.org/http://forum ... 580#p15580) so I can run SabNZBD on it. All went well until I got to part 10.5 (posted after the first post) where I run SABnzbd.py so it creates the INI file for me to edit. The trouble is it never gets made and I get an error message. Below is what happens.

Code: Select all

login as: root
[email protected]'s password:
Last login: Mon May 24 17:33:04 2010 from hal.lan


The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
HAL_NAS:~# python  /opt/SABnzbd-0.5.2/SABnzbd.py
Traceback (most recent call last):
  File "/opt/SABnzbd-0.5.2/SABnzbd.py", line 63, in ?
    import sabnzbd
  File "/opt/SABnzbd-0.5.2/sabnzbd/__init__.py", line 66, in ?
    import sabnzbd.nzbqueue as nzbqueue
  File "/opt/SABnzbd-0.5.2/sabnzbd/nzbqueue.py", line 37, in ?
    import sabnzbd.assembler
  File "/opt/SABnzbd-0.5.2/sabnzbd/assembler.py", line 40, in ?
    import sabnzbd.postproc
  File "/opt/SABnzbd-0.5.2/sabnzbd/postproc.py", line 41, in ?
    import sabnzbd.emailer as emailer
  File "/opt/SABnzbd-0.5.2/sabnzbd/emailer.py", line 212, in ?
    from email.message import Message
ImportError: No module named message
HAL_NAS:~#
HAL_NAS:~#
Any help greatly appreciated.

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Posted: May 24th, 2010, 5:07 pm
by shypike
You must be using Python 2.4.
Please read this: https://forums.sabnzbd.org/index.php?topic=4266.0

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Posted: May 25th, 2010, 7:43 am
by Hitcher
Thanks for the reply.

Would you suggest I simply use v4.11 as stated in the guide then?

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Posted: May 25th, 2010, 9:02 am
by shypike
It says you should replace the file emailer.py with the attachment of the message.

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Posted: May 25th, 2010, 12:07 pm
by Hitcher
Sorry, I thought you meant I must install Python 2.4 not that I was actaully running it.

Anyway I finally managed to download it but now I'm having real problems with permissions to the folders -I can't access any of them from my PC (Windows 7) thus can't save any NZB files I download to the 'watch' folder and get access to the 'Incomplete'/'Complete' folders.

I've tried using Putty from the guide and running CHMOD 777/0777 to the 'root' folder but that doesn't work.
I've also tried the permission from SAB but that doesn't work either.
And finally I've tried to use another folder on my NAS using \\HAL_NAS\\Volume_1\\Complete but that just creates another folder in the SAB folder.

As I originally said I'm a complete newcomer to working from the command line and Linux in general.

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Posted: May 25th, 2010, 3:47 pm
by Hitcher
Update: Sorted my permission problem out.

I didn't use -R to set the permissions recursively.

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Posted: May 25th, 2010, 4:14 pm
by Hitcher
One final question if I may -

Is there a quicker way to restart SAB other than running Putty and entering the following command?

python  /opt/SABnzbd-0.4.11/SABnzbd.py -d -f ~/.sabnzbd/sabnnbd.ini

Could it be added to the fun_plug?

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Posted: May 25th, 2010, 4:22 pm
by shypike
Release 0.5.2 has a restart button in the UI (Classic: Config, main page, Plush: Config->General, smpl: left column)
Not sure if it works for Unix daemons. Only one way to find out :)

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Posted: May 26th, 2010, 12:43 am
by Hitcher
Sorry, I meant restart from a complete stop.

And I spoke too soon about the permisssions; left it downloading Lost last night but upon checking this morning it hasn't been extracted and is still in the 'incomplete' folder and guess what, I can't access it from my PC.

Re: Help needed setting up 0.5.2 on my NAS (DNS-323)

Posted: May 26th, 2010, 2:22 am
by shypike
Hitcher wrote: Sorry, I meant restart from a complete stop.
I don't see how you can restart a stopped SABnzbd without a terminal.
Unless you just reboot the NAS itself (assuming SABnzbd was configured for autostart).

Permissions: SABnzbd just uses standard Unix methods to set the permissions right.
Usually Samba shares need more permission work outside the scope of SABnzbd.