[Mattricks] crashin on startup

Agnar Ødegård agnar at theodegards.com
Sat Sep 4 23:25:59 CEST 2004


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



More information about the Mattricks mailing list