Page 1 of 1

fix hard dependency to webbrowser

Posted: December 1st, 2015, 4:36 am
by zeflash
Hey,

I just migrated my sabnzbd setup on my QNAP from the stable 7.20 release to the newer 8 beta3 (using the QPKG Wilson Hall is maintaining). Doing so, I also dug a bit into the python that was used, installed QNapWare to get up-to-date python binaries, etc.

Turns out using the latest (stripped down) python from QNapWare, the python module "webbrowser" isn't available. Which totally makes sense on any kind of head-less devices BTW.

The current SABNzbd code does use webbrowser (panic.py), and actually protects the call to openURL with a try catch, but does the import at the top of the panic.py.
In my case, without that library I can't start sabnzbd. Better move the import into the try/catch section!

Re: fix hard dependency to webbrowser

Posted: December 1st, 2015, 6:47 am
by shypike
Good idea, will be implemented.

Re: fix hard dependency to webbrowser

Posted: December 3rd, 2015, 2:56 pm
by shypike
Will be fixed in next release.