I get the following traceback when comparing two recent hrf files and clicking "no filter". I'm using mattricks 0.6 on Win2k. I can only recreate this error when comparing with one specific hrf file so my guess is the specific hrf file is somehow non-standard/corrupt or contains a seldom used character that makes mattricks barf.
Traceback (most recent call last): File "Mattricks\ComparisonPage.pyc", line 150, in NoFilterChanged File "Mattricks\ComparisonPage.pyc", line 154, in OnFilterChanged File "Mattricks\ComparisonPage.pyc", line 178, in __get_change_text File "Mattricks\Listchanges.pyc", line 177, in get_changes_text File "Mattricks\Listchanges.pyc", line 224, in __make_changes_text KeyError: 'TransferListed'
I'm willing to send some of my hrf files for testing but since I don't know how many recipients there are to mattricks@ I am holding back on that since I don't want my team details going public so to speak (i.e. are there only developers subscribed to mattricks@ and will they/you keep my team details confidential? I'm guessing the answer is "of course", but best to be on the safe side...).
Other than that, all I can say is thank you for an excellent piece of software, I use it on both windows and linux (Debian) and not including the above it works very well!
Hi!
On Fri, 27 Aug 2004, Rasmus Larsson wrote:
Traceback (most recent call last): File "Mattricks\ComparisonPage.pyc", line 150, in NoFilterChanged File "Mattricks\ComparisonPage.pyc", line 154, in OnFilterChanged File "Mattricks\ComparisonPage.pyc", line 178, in __get_change_text File "Mattricks\Listchanges.pyc", line 177, in get_changes_text File "Mattricks\Listchanges.pyc", line 224, in __make_changes_text KeyError: 'TransferListed'
I would guess that this has somethign to do with an extra element in the HRF-file "TransferListed" that we are not aware of (or are we?).
I'm willing to send some of my hrf files for testing but since I don't know how many recipients there are to mattricks@ I am holding back on that since I don't want my team details going public so to speak (i.e. are there only developers subscribed to mattricks@ and will they/you keep my team details confidential? I'm guessing the answer is "of course", but best to be on the safe side...).
Yes, what we are interested in is if you may have an hrf-file with a TransferListed line in it. You could either send the complete hrf (to me) or the line indication which section it belongs to (probably one of the players) to the list.
The HRF:s are going obsolete on Oct. 1, so there will be a new solution for the comparison, but it's still nice if the problem could be removed.
Other than that, all I can say is thank you for an excellent piece of software, I use it on both windows and linux (Debian) and not including the above it works very well!
Thanks!
/Oscar
On Fri, 27 Aug 2004 09:10:30 +0200 (MEST), Oscar Gustafsson oscar@lysator.liu.se wrote:
Hi!
On Fri, 27 Aug 2004, Rasmus Larsson wrote:
Traceback (most recent call last): File "Mattricks\ComparisonPage.pyc", line 150, in NoFilterChanged File "Mattricks\ComparisonPage.pyc", line 154, in OnFilterChanged File "Mattricks\ComparisonPage.pyc", line 178, in __get_change_text File "Mattricks\Listchanges.pyc", line 177, in get_changes_text File "Mattricks\Listchanges.pyc", line 224, in __make_changes_text KeyError: 'TransferListed'
I would guess that this has somethign to do with an extra element in the HRF-file "TransferListed" that we are not aware of (or are we?).
I'm willing to send some of my hrf files for testing but since I don't know how many recipients there are to mattricks@ I am holding back on that since I don't want my team details going public so to speak (i.e. are there only developers subscribed to mattricks@ and will they/you keep my team details confidential? I'm guessing the answer is "of course", but best to be on the safe side...).
Yes, what we are interested in is if you may have an hrf-file with a TransferListed line in it. You could either send the complete hrf (to me) or the line indication which section it belongs to (probably one of the players) to the list.
And you were correct, it is a line in the players' description. Here is a player so you'll have something to work with:
[player22779889] name=Peter Everhall ald=19 ska=-1 for=6 uth=8 spe=9 mal=3 fra=4 ytt=2 fas=5 bac=4 mlv=1 rut=1 led=2 sal=11001 mkt=3420 gev=0 gtl=0 gtc=0 gtt=0 hat=0 CountryID=1 warnings=0 speciality=0 specialityLabel= gentleness=1 gentlenessLabel= honesty=2 honestyLabel= Aggressiveness=2 AggressivenessLabel= TrainerType= TrainerSkill= rating=0 PlayerNumber=100 TransferListed=0 NationalTeamID=0 Caps=0 CapsU20=0 TPE=-1
/Rasmus
Thanks!
I've added the missing fields now, at least. Although I do not know if that made anything actually working better.
/Oscar
Hola,
I just installed the CVS but it immediately crashes on startup. This is what I get: ****************************************************'' File "./mattricks.py", line 36, in ? Init.start() File "/home/agnar/sources/Mattricks/Mattricks/Init.py", line 57, in start Commandline.parse_and_start() File "/home/agnar/sources/Mattricks/Mattricks/Commandline.py", line 105, in parse_and_start all_commands[command](args, help_command) File "/home/agnar/sources/Mattricks/Mattricks/Commandline.py", line 121, in parse_cmd_gui Main.main(*args) File "/home/agnar/sources/Mattricks/Mattricks/Main.py", line 465, in main app = Main(filename) File "/home/agnar/sources/Mattricks/Mattricks/Main.py", line 417, in __init__ wxApp.__init__(self) File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in __init__ _wxStart(self.OnInit) File "/home/agnar/sources/Mattricks/Mattricks/Main.py", line 440, in OnInit frame.AfterInit() File "/home/agnar/sources/Mattricks/Mattricks/Main.py", line 264, in AfterInit page.AfterInit() File "/home/agnar/sources/Mattricks/Mattricks/ArenaPage.py", line 406, in AfterInit data = XMLParse.get(["economy"]) File "/home/agnar/sources/Mattricks/Mattricks/XMLParse.py", line 322, in get nuserid = int(databases.get(None, False, "Mattricks.current_userid")), TypeError: int() argument must be a string or a number ***************************************************
So, not being a programmer (NBAP), I just tried to uncomment the inner if loop that crashes mattricks and it started. However, after typing in name and password and some downloading, it crashes again. This thime with:
*************************************************** Traceback (most recent call last): File "/usr/bin/mattricks.py", line 36, in ? Init.start() File "/usr/lib/python2.3/site-packages/Mattricks/Init.py", line 57, in start Commandline.parse_and_start() File "/usr/lib/python2.3/site-packages/Mattricks/Commandline.py", line 105, in parse_and_start all_commands[command](args, help_command) File "/usr/lib/python2.3/site-packages/Mattricks/Commandline.py", line 121, in parse_cmd_gui Main.main(*args) File "/usr/lib/python2.3/site-packages/Mattricks/Main.py", line 465, in main app = Main(filename) File "/usr/lib/python2.3/site-packages/Mattricks/Main.py", line 417, in __init__ wxApp.__init__(self) File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in __init__ _wxStart(self.OnInit) File "/usr/lib/python2.3/site-packages/Mattricks/Main.py", line 440, in OnInit frame.AfterInit() File "/usr/lib/python2.3/site-packages/Mattricks/Main.py", line 264, in AfterInit page.AfterInit() File "/usr/lib/python2.3/site-packages/Mattricks/ArenaPage.py", line 423, in AfterInit self.__updategui() File "/usr/lib/python2.3/site-packages/Mattricks/ArenaPage.py", line 441, in __updategui b_terraces = self.n_terraces - self.terraces TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType' ************************************************
Although I'm not a programmer, I monitor this list closely reading about all the improvements. Mattricks is shaping up real nice!! Great work!
Agnar
This is a bit strange. Are you starting a completely new installation or are you upgrading a previous?
It makes maybe some sense for a brand new installation, but none for a previous. I believe we will have to take a deeper look into this.
What happens is that the user-id is not returned when asked for (in the first output), but instead some non-int.
The behaviour of the second output is expected as you now do not have any arena data to fill in, as the fetch didn't work.
I believe that most of your and Zazell's problems have to do with the XML-ification of the Economy-page and Arena-page making Mattricks fecth new data on start-up before possibly everything required has initialized.
/Oscar
mattricks@lists.lysator.liu.se