Page 1 of 1
PerSetTracking

Posted:
10 Nov 2011, 07:03
by moomarc
I just tried to run the PerSetTracking script but got this error:
- Code: Select all
File "F:\Personal\CardForge\Forge Eclipse SVN\Forge\res\PerSetTracking.py", line 109
totalDataList = sorted(totalData.items(), key=lambda (key,entry): entry[3], reverse=True)
^
SyntaxError: invalid syntax
Any idea what the problem is?
Re: PerSetTracking

Posted:
10 Nov 2011, 12:59
by friarsol
It works for me. What version of Python do you have? Did you accidentally change the file?
Re: PerSetTracking

Posted:
10 Nov 2011, 13:35
by moomarc
I just installed 3.2, and definitely didn't change the script.
But I haven't installed Python before so maybe I just missed something.
Re: PerSetTracking

Posted:
10 Nov 2011, 14:53
by friarsol
Oh. It might not be compliant with 3.*. Python is a weird language where noone has moved onto 3.* yet, I'm still on 2.6. There's probably some syntactical differences with the lambda functions in the absolute latest.
Re: PerSetTracking

Posted:
10 Nov 2011, 15:25
by moomarc
friarsol wrote:Oh. It might not be compliant with 3.*. Python is a weird language where noone has moved onto 3.* yet, I'm still on 2.6. There's probably some syntactical differences with the lambda functions in the absolute latest.
Thanks. I'll see if I can find the 3.x syntax otherwise I'll just install 2.x instead.
Re: PerSetTracking

Posted:
10 Nov 2011, 15:46
by friarsol
moomarc wrote:Thanks. I'll see if I can find the 3.x syntax otherwise I'll just install 2.x instead.
Installing 2.x is definitely my recommended route.