SABnzbd 0.74+ for embedded device issue.
Posted: November 5th, 2012, 2:21 pm
I run sabnzbd on my Asus RT-N16, with optware to supply python and all the necessary modules. I believe starting with 0.74 but definitely with 0.75 I get the following error when trying to access the web ui.
This device is running really slimmed down linux, and it looks like the new feature to show the cpu load is causing it to crash when looking for the 'os.getloadavg()' function, which is probably just not there. I'm fine with running 0.93, but maybe would be nice to see this as an optional feature, or perhaps disabled by default.
thanks for the awesome software.
Code: Select all
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/opt/sabnzbd/cherrypy/_cprequest.py", line 618, in respond
cherrypy.response.body = self.handler()
File "/opt/sabnzbd/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/opt/sabnzbd/sabnzbd/interface.py", line 258, in index
info, pnfo_list, bytespersec = build_header(self.__prim, self.__web_dir)
File "/opt/sabnzbd/sabnzbd/api.py", line 1560, in build_header
header['loadavg'] = loadavg()
File "/opt/sabnzbd/sabnzbd/misc.py", line 1029, in loadavg
p = '%.2f | %.2f | %.2f' % os.getloadavg()
AttributeError: 'module' object has no attribute 'getloadavg'thanks for the awesome software.