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

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
shaggymc
Newbie
Newbie
Posts: 2
Joined: August 9th, 2016, 9:35 pm

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

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Failure to start - No module named lang error

Post 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?
shaggymc
Newbie
Newbie
Posts: 2
Joined: August 9th, 2016, 9:35 pm

Re: Failure to start - No module named lang error

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Failure to start - No module named lang error

Post 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).
Post Reply