Major bug: Python syntax errors after recent Python update.

Report & discuss bugs found in SABnzbd
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
Chewy
Newbie
Newbie
Posts: 3
Joined: November 24th, 2010, 3:27 pm

Major bug: Python syntax errors after recent Python update.

Post by Chewy »

Version: 0.5.6 Final
OS: linux, 2.6.35-ARCH
Install-type: python source
Firewall Software: none
Are you using IPV6? no
Is the issue reproducible? yes

Python version: 3.1.2

It appears that the Python syntax changed somewhere along the way! I just updated my Linux system and it also included a Python update. I do not know what the previous version of Python was, but SABnzbd ran smoothly on it. After this Python update to version 3.1.2 it appears that a simple "hello world" changed from:

(in python terminal mode)
>>> print "hello world"

to

>>> print ("hello world")

This leads to massive syntax errors when running SABnzbd.

It would be helpful for this to be fixed as soon as possible, as I really like to finish my downloads without having to rollback my system update ;).

Thanks in advance and thanks for a great piece of software.

- Chris (Chewy).
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Major bug: Python syntax errors after recent Python update.

Post by sander »

the FAQ: http://wiki.sabnzbd.org/faq#toc4
What versions of Python are supported?

We currently support Python 2.4.6+, Python 2.5.x (recommended) and Python 2.6.x. Python 2.7 and 3.0 are NOT supported.

If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Major bug: Python syntax errors after recent Python update.

Post by shypike »

Python 3 is not supported at all and won't be for quite some time.
Chewy
Newbie
Newbie
Posts: 3
Joined: November 24th, 2010, 3:27 pm

Re: Major bug: Python syntax errors after recent Python update.

Post by Chewy »

Sorry about the inconvenience.

Will rollback python. Thanks for the reply!
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Major bug: Python syntax errors after recent Python update.

Post by shypike »

Most distros offer parallel versions of Python 2.x and 3.x
because those Pythons are substantially incompatible and it isn't even possible
to publish source code that runs on both.
We would need to publish a special release Python 3.
The latter isn't even possible today because many packages that we use
have not been ported to Python 3.
Chewy
Newbie
Newbie
Posts: 3
Joined: November 24th, 2010, 3:27 pm

Re: Major bug: Python syntax errors after recent Python update.

Post by Chewy »

I changed my SABnzbd daemon script so that SABnzbd runs with a package called 'python2' which was automatically installed by my repository when my system updated. Rolling back to an old python package which contains Python version 2.6.x is just one hell of a job considering the dependencies. SABnzbd now runs smoothly again, but with Python version 2.7. Is this version (2.7) a problem?

Thanks in advance,

Chris.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Major bug: Python syntax errors after recent Python update.

Post by shypike »

We don't test 2.7, but I see no reason why it should be a problem.

I don't quite get the issue with the roll-back.
Most distros treat Python 2.x and Python 3.x as different products.
E.g. much of Ubuntu's support is Python-based and will definitely not work with Python 3.
Post Reply