This is due to trying to run code written for python 2.6 on 2.4. The 
<true-value> if <boolean> else <false-value> expression did not exist in python 
2.4.

If you upgrade your runtime you should be good to go.

Matt


On Feb 16, 2011, at 8:24 PM, Josh <question145...@answers.launchpad.net> wrote:

> Question #145686 on Graphite changed:
> https://answers.launchpad.net/graphite/+question/145686
> 
> Josh gave more information on the question:
> Also noticed this during the install which I missed:
> 
> running install_lib
> copying build/lib/graphite/pyparsing.py -> /opt/graphite/webapp/graphite
> copying build/lib/graphite/render/carbonlink.py -> 
> /opt/graphite/webapp/graphite/render
> copying build/lib/graphite/render/datatypes.py -> 
> /opt/graphite/webapp/graphite/render
> byte-compiling /opt/graphite/webapp/graphite/pyparsing.py to pyparsing.pyc
> byte-compiling /opt/graphite/webapp/graphite/render/carbonlink.py to 
> carbonlink.pyc
> byte-compiling /opt/graphite/webapp/graphite/render/datatypes.py to 
> datatypes.pyc
> byte-compiling /opt/graphite/webapp/graphite/render/functions.py to 
> functions.pyc
>  File "/opt/graphite/webapp/graphite/render/functions.py", line 413
>    perc_val = s_copy[ pord - 1 if pord > 0 else pord ]
>                                 ^
> SyntaxError: invalid syntax
> 
> -- 
> You received this question notification because you are a member of
> graphite-dev, which is an answer contact for Graphite.
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev
> Post to     : graphite-dev@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~graphite-dev
Post to     : graphite-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~graphite-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to