Page 1 of 1

Python errors on startup

Posted: September 21st, 2012, 9:52 am
by combspecialist
Been getting this for a while when sab first starts at logon after a reboot:

Code: Select all

Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
Traceback (most recent call last):
  File "sabnzbd\utils\systrayiconthread.pyo", line 164, in notify
  File "sabnzbd\utils\systrayiconthread.pyo", line 238, in execute_menu_option
  File "sabnzbd\sabtray.pyo", line 101, in browse
  File "sabnzbd\panic.pyo", line 239, in launch_a_browser
TypeError: argument of type 'NoneType' is not iterable
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
close failed: [Errno 28] No space left on device
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Python WNDPROC handler failed
Traceback (most recent call last):
  File "sabnzbd\utils\systrayiconthread.pyo", line 164, in notify
  File "sabnzbd\utils\systrayiconthread.pyo", line 238, in execute_menu_option
  File "sabnzbd\sabtray.pyo", line 101, in browse
  File "sabnzbd\panic.pyo", line 239, in launch_a_browser
TypeError: argument of type 'NoneType' is not iterable
Python WNDPROC handler failed
TypeError: restart() takes exactly 2 arguments (5 given)
Simply waiting for Windows to finish starting up then launching sab manually solves it but I'm curious what the problem is. I could write a script to simply sleep for a while then lanuch sab but thought I'd see if it can be fixed properly first.

Re: Python errors on startup

Posted: September 21st, 2012, 11:58 am
by shypike
It looks like SABnzbd is started before Windows Explorer is ready.
You can opt to start SABnzbd as a Scheduled Task, choose "at login" with a delay.