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

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • 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
liquidplastik
Newbie
Newbie
Posts: 4
Joined: February 3rd, 2010, 4:54 am

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

Post 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?
User avatar
jcfp
Release Testers
Release Testers
Posts: 989
Joined: February 7th, 2008, 12:45 pm

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

Post 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.
Last edited by jcfp on December 26th, 2010, 5:14 am, edited 1 time in total.
liquidplastik
Newbie
Newbie
Posts: 4
Joined: February 3rd, 2010, 4:54 am

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

Post 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
Post Reply