fix hard dependency to webbrowser
Posted: December 1st, 2015, 4:36 am
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!
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!