PerSetTracking
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
6 posts
• Page 1 of 1
PerSetTracking
by 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
-Marc
-

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
by 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
by 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.
But I haven't installed Python before so maybe I just missed something.
-Marc
-

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
by 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
by moomarc » 10 Nov 2011, 15:25
Thanks. I'll see if I can find the 3.x syntax otherwise I'll just install 2.x instead.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.
-Marc
-

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
by friarsol » 10 Nov 2011, 15:46
Installing 2.x is definitely my recommended route.moomarc wrote:Thanks. I'll see if I can find the 3.x syntax otherwise I'll just install 2.x instead.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests