Page 1 of 1

Failure to start - No module named lang error [FreeNAS]

Posted: August 9th, 2016, 9:52 pm
by shaggymc
I am having an issue starting the v1.0.3 of Sabnzbd. When I start the service I get the following error:

Code: Select all

Starting sabnzbd.
Traceback (most recent call last):
  File "/usr/local/bin/SABnzbd.py", line 88, in <module>
    import sabnzbd
  File "/usr/local/bin/sabnzbd.py", line 89, in <module>
    import sabnzbd.lang
ImportError: No module named lang
/usr/local/etc/rc.d/sabnzbd: WARNING: failed to start sabnzbd
This is running a v9.3 FreeNAS system. I have posted this same error on the FreeNAS forums but no one over there knows how to resolve the issue.

I have tried to upgrade from v0.7.20, installed the pkg using the GUI interface and installed the pkg via CLI. Both installations were on new clean jails/environments. All three ways lead to the same error message. My hope is someone here has some information.

Re: Failure to start - No module named lang error

Posted: August 10th, 2016, 1:52 am
by shypike
It says that it cannot find the file lang.py
Is that file present?

The location of SABnzbd is a bit odd: /usr/local/bin/SABnzbd.py
SABnzbd would expect a lot more files in /usr/local/bin/sabnzbd
Are there any?

Re: Failure to start - No module named lang error

Posted: August 10th, 2016, 4:58 pm
by shaggymc
No, the file lang.py was not present in /usr/local/bin. I found a copy of the lang.py file in the location /usr/local/lib/python2.7/site-packages/sabnzbd. So I copied it to the /usr/local/bin folder. Same error when I attempted to start the service.

I didn't have a folder sabnzbd in the bin folder.

Re: Failure to start - No module named lang error

Posted: August 11th, 2016, 3:22 am
by shypike
I have no idea how this package works, we don't create it.
What you normally do is just unpack our tar.gz distribution in a place like /opt/sabnzbd
and then run:
/opt/sabnzbd/SABnzbd.py --server HOST:PORT -b0 -f /path/to/your/adminspace
That should work.
The other challenge is to run it automatically.
The latter is what packages essentially do (and put it somewhere sensible and have some default parameters).