fix hard dependency to webbrowser

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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
zeflash
Newbie
Newbie
Posts: 10
Joined: August 8th, 2011, 4:18 am

fix hard dependency to webbrowser

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

Re: fix hard dependency to webbrowser

Post by shypike »

Good idea, will be implemented.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: fix hard dependency to webbrowser

Post by shypike »

Will be fixed in next release.
Post Reply