Page 1 of 1

Getting a SyntaxError when trying to start from startup script in Ubuntu

Posted: December 25th, 2010, 6:57 pm
by liquidplastik
This is strange, I just did a apt-get update to my server running Ubuntu and now SABNZBD+ is throwing an error. Here are the details:

Version: 0.5.6
OS: Ubuntu Maverick
Install-type: linux repository
Skin (if applicable): Default
Firewall Software: none
Are you using IPV6? no
Is the issue reproducible? yes

Python version: 2.6

Error when running "sudo /etc/init.d/sabnzbdplus start"

* Starting SABnzbd+ binary newsgrabber                                        Traceback (most recent call last):
  File "/usr/bin/sabnzbdplus", line 24, in
    import logging
  File "/usr/lib/python2.6/logging/__init__.py", line 1525, in
    import atexit
  File "/usr/lib/python2.6/atexit.py", line 60
    $  print "running x3(%r, kwd=%r)"$% (n, kwd)
    ^
SyntaxError: invalid syntax



Any idea what's going on?

Re: Getting a SyntaxError when trying to start from startup script in Ubuntu

Posted: December 26th, 2010, 5:08 am
by jcfp
liquidplastik wrote: This is strange, I just did a apt-get update to my server running Ubuntu and now SABNZBD+ is throwing an error. Here are the details:

* Starting SABnzbd+ binary newsgrabber                                         Traceback (most recent call last):
 File "/usr/bin/sabnzbdplus", line 24, in
   import logging
 File "/usr/lib/python2.6/logging/__init__.py", line 1525, in
   import atexit
 File "/usr/lib/python2.6/atexit.py", line 60
   $  print "running x3(%r, kwd=%r)"$% (n, kwd)
   ^
SyntaxError: invalid syntax
That error appears to be in some standard python library, please check if the updates included something relevant there. Nothing has changed on the sab side.

Re: Getting a SyntaxError when trying to start from startup script in Ubuntu

Posted: December 27th, 2010, 2:02 am
by liquidplastik
I fixed this by manually editing the python files in question and removing the "$" characters. That seemed to do it. I just hope they weren't important  ;D