Page 1 of 1

Major bug: Python syntax errors after recent Python update.

Posted: November 24th, 2010, 3:43 pm
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).

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

Posted: November 24th, 2010, 4:45 pm
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.


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

Posted: November 24th, 2010, 4:49 pm
by shypike
Python 3 is not supported at all and won't be for quite some time.

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

Posted: November 24th, 2010, 5:01 pm
by Chewy
Sorry about the inconvenience.

Will rollback python. Thanks for the reply!

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

Posted: November 24th, 2010, 5:27 pm
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.

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

Posted: November 24th, 2010, 5:54 pm
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.

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

Posted: November 25th, 2010, 10:52 am
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.