It is currently 01 Nov 2025, 14:28
   
Text Size

PerSetTracking

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

PerSetTracking

Postby moomarc » 10 Nov 2011, 07:03

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?
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: PerSetTracking

Postby friarsol » 10 Nov 2011, 12:59

It works for me. What version of Python do you have? Did you accidentally change the file?
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: PerSetTracking

Postby moomarc » 10 Nov 2011, 13:35

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.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: PerSetTracking

Postby friarsol » 10 Nov 2011, 14:53

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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: PerSetTracking

Postby moomarc » 10 Nov 2011, 15:25

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.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: PerSetTracking

Postby friarsol » 10 Nov 2011, 15:46

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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 9 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 9 users online :: 0 registered, 0 hidden and 9 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 9 guests

Login Form