Hi,
When I change the League, Season and hit Update the name of my team will show up with how many goals I've made, but then it will be stuck in a infinite loop, seems to be a redraw that is called over and over. Is there some way to sample the actual Python code? I'm _NOT_ attaching a sample of the python app (this time) because its quite substantial. I can get one any time if you want to see it though.
-- kent
Hi again,
It seems like the program dies within LeaguePage.__update_table(). Could you try locate exactly where it hangs? Add some 'print "checkpoint 1"' in __change_table() on about line 315 in LeaguePage.py.
/Ragnar
On Fri, 16 Jan 2004, Kent Karlsson wrote:
Hi,
When I change the League, Season and hit Update the name of my team will show up with how many goals I've made, but then it will be stuck in a infinite loop, seems to be a redraw that is called over and over. Is there some way to sample the actual Python code? I'm _NOT_ attaching a sample of the python app (this time) because its quite substantial. I can get one any time if you want to see it though.
-- kent
Mattricks mailing list Mattricks@lists.lysator.liu.se http://lists.lysator.liu.se/mailman/listinfo/mattricks
On Fri, 16 Jan 2004, Kent Karlsson wrote:
When I change the League, Season and hit Update the name of my team will show up with how many goals I've made, but then it will be stuck in a infinite loop, seems to be a redraw that is called over and over. Is there some way to sample the actual Python code? I'm _NOT_ attaching a sample of the python app (this time) because its quite substantial. I can get one any time if you want to see it though.
Is this using the latest CVS-version?
I did some changes yesterday that maybe messed up the Mac-version. Seems to work on Windows and Linux, though.
You could try in LeaguePage.Update() to move self.GetSizer().Layout() to just before self.Refresh(), this should effectively reverse the changes I made (although you will get buttons of different sizes).
The second alternative is to comment out line 311 and 312 (the two lines just before the original self.GetSizer().Layout()).
/Oscar
On 2004-01-16, at 11.11, Oscar Gustafsson wrote:
Is this using the latest CVS-version?
I have seen it in the 0.4 drop as well, but when I updated to the cvs and created a new database the problem was gone for a while until it resurfaced last night.
I will try your suggestions tonight anyway and see what they give, otherwise I will fall back to the print-debugging Ragnar suggested.
How sensitive is python on spaces vs. tabs? I have my vim set to use tabs, will that work?
-- kent
Perhaps you can explain this, it doesn't make sense to me.
If I comment out Row 394 in LeaguePage.py I wont get the hangup. The problem seems to be when 2 chars are needed to display the number, cause str(po)[-1:] works perfectly.
I cant find anything that differs the Points column from the others.
Anyone got any ideas on this one?
-- kent
On Sat, 17 Jan 2004, Kent Karlsson wrote:
Perhaps you can explain this, it doesn't make sense to me.
If I comment out Row 394 in LeaguePage.py I wont get the hangup. The problem seems to be when 2 chars are needed to display the number, cause str(po)[-1:] works perfectly.
Have you scored so little goals in your league? Btw, it could help if I get your league id and check it out (not that I expect to get any errors here because of it, but to have a basic knowledge of the file.
I cant find anything that differs the Points column from the others.
Anyone got any ideas on this one?
It might not be that strange though, since it perhaps tries to write outside it's allocated space and thus crashes. Just a theory. I have no idea otherwise.
/Ragnar
On 2004-01-17, at 09.28, Ragnar Ouchterlony wrote:
Have you scored so little goals in your league? Btw, it could help if I get your league id and check it out (not that I expect to get any errors here because of it, but to have a basic knowledge of the file.
The 8th column is the Points, I just dont know why It stopped working. I'm Nanite of league 12034, btw.
It might not be that strange though, since it perhaps tries to write outside it's allocated space and thus crashes. Just a theory. I have no idea otherwise.
I tried to remove the bunch of spaces that the number is appended to, but it didn't help. Just tried it and your league doesn't work either, so I assume it has to do with some freaky thing in wxPython for MacOS X. Ill try to play some more with the code and see if I can figure out a way around it.
-- kent
On Sat, 17 Jan 2004, Kent Karlsson wrote:
The 8th column is the Points, I just dont know why It stopped working. I'm Nanite of league 12034, btw.
Ok, nothing wrong here. Seems to go well for your team. :)
I tried to remove the bunch of spaces that the number is appended to, but it didn't help. Just tried it and your league doesn't work either, so I assume it has to do with some freaky thing in wxPython for MacOS X. Ill try to play some more with the code and see if I can figure out a way around it.
I am really out of ideas right now, but I'll look into it more closely this weekend.
/Ragnar
On 2004-01-17, at 11.32, Ragnar Ouchterlony wrote:
Ok, nothing wrong here. Seems to go well for your team. :)
Yeah, It's going pretty ok. I'm still pretty new to hattrick so I'm not really satisfied with the team yet, but its coming along nicely. =)
I've found that Played Matches, Wins and Losses also have the same problem, so I've limited them in my version to only one digit as well until I've found a workaround.
On another note, I've written a draft for a function to the cmdline that lists all players, the matches they played and ratings. I'll send you a diff for it when I've managed to add their form at those dates if you have the hrf if its something you're interested in.
Python is a pretty odd language.
-- kent
On Sat, 17 Jan 2004, Kent Karlsson wrote:
On 2004-01-17, at 11.32, Ragnar Ouchterlony wrote:
Ok, nothing wrong here. Seems to go well for your team. :)
Yeah, It's going pretty ok. I'm still pretty new to hattrick so I'm not really satisfied with the team yet, but its coming along nicely. =)
I'm don't have that much time with HT either, just one and a half season.
I've found that Played Matches, Wins and Losses also have the same problem, so I've limited them in my version to only one digit as well until I've found a workaround.
Do you have any similar problems with the match viewer? Because I think I will try to change some things in LeaguePage and see if it works better.
On another note, I've written a draft for a function to the cmdline that lists all players, the matches they played and ratings. I'll send you a diff for it when I've managed to add their form at those dates if you have the hrf if its something you're interested in.
That seems nice.
Python is a pretty odd language.
Odd, yes, but a rather nice way if you ask me.
/Ragnar
On 2004-01-18, at 11.02, Ragnar Ouchterlony wrote:
Do you have any similar problems with the match viewer? Because I think I will try to change some things in LeaguePage and see if it works better.
I'm testing it as we speak. =)
Odd, yes, but a rather nice way if you ask me.
I havent really found all the stuff in it yet, but the handling of lists, sequences, tuples and so on seems very nice.
I got the player-history function to work last night, how do I go forward with it? Do I send you a diff of it?
-- kent
On Sun, 18 Jan 2004, Kent Karlsson wrote:
On 2004-01-18, at 11.02, Ragnar Ouchterlony wrote:
Do you have any similar problems with the match viewer? Because I think I will try to change some things in LeaguePage and see if it works better.
I'm testing it as we speak. =)
Good.
Odd, yes, but a rather nice way if you ask me.
I havent really found all the stuff in it yet, but the handling of lists, sequences, tuples and so on seems very nice.
Yes, it is almost lisp-like handling of lists and sequences, but without the complete obscurity of lisp.
I got the player-history function to work last night, how do I go forward with it? Do I send you a diff of it?
Preferably, yes.
/Ragnar
mattricks@lists.lysator.liu.se