On Friday, August 9, 2013 3:28:22 AM UTC-7, Peter Suter wrote:

> You seem to be using Python 3.3, but Trac 1.0 requires Python 2.5, 2.6 or 
> 2.7.
>
> See http://trac.edgewall.org/wiki/TracInstall#MandatoryDependencies
>
> --
> Peter
>

Do you know of a good way that we can fix that print statement to also 
print correctly in Python 3.x?

from __future__ import print_function is not available until Python 2.6.

How about?:

try:
    print "Trac requires Python %d.%d or later" % min_python
except SyntaxError:
    print("Trac requires Python %d.%d or later" % min_python)

Not yet tested, so Python 3.x syntax might not be exactly correct.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to