rajrakeshdr / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

AttributeError #315

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set an UCI engine for analyzing (tried with Galurung and Toga2)
2. Login to FICS
3. Observe a running game

Both with 0.8.1 and svn trunk:

19:34:13 stdout Debug:   File "/usr/lib/python2.5/threading.py", line 460,
in __bootstrap
    self.run()
  File "/usr/lib/python2.5/site-packages/pychess/System/ThreadPool.py",
line 73, in run
    self.func()
  File "/usr/lib/python2.5/site-packages/pychess/System/ThreadPool.py",
line 46, in <lambda>
    a.func = lambda: func(*args)
  File "/usr/lib/python2.5/site-packages/pychess/System/GtkWorker.py", line
159, in run
    self.result = self.func(self)
  File "/usr/lib/python2.5/site-packages/pychess/widgets/ionest.py", line
33, in <lambda>
    workfunc(w, gamemodel, player0tup, player1tup, loaddata))
  File "/usr/lib/python2.5/site-packages/pychess/widgets/ionest.py", line
103, in workfunc
    hintanalyzer.autoAnalyze(inverse=False)
  File "/usr/lib/python2.5/site-packages/pychess/Players/UCIEngine.py",
line 78, in autoAnalyze
    pool.start(autorun)
  File "/usr/lib/python2.5/site-packages/pychess/Players/UCIEngine.py",
line 69, in autorun
    self.parseLine(self.engine.readline())
  File "/usr/lib/python2.5/site-packages/pychess/Players/UCIEngine.py",
line 227, in parseLine
    moves = listToMoves (self.board, movstrs, AN, validate=True)
  File "/usr/lib/python2.5/site-packages/pychess/Utils/Move.py", line 76,
in listToMoves
    board.board, mstrs, type, validate)]
19:34:13 stdout Debug: <type 'exceptions.AttributeError'> 'NoneType' object
has no attribute 'board'

Original issue reported on code.google.com by gbtami on 28 Mar 2008 at 6:40

GoogleCodeExporter commented 9 years ago
:/ I can reproduce this.
It works when loading a game as well.

Original comment by lobais on 29 Mar 2008 at 2:58

GoogleCodeExporter commented 9 years ago
I think this is fixed in latest revision in branches/0.8.1

Original comment by lobais on 29 Mar 2008 at 3:56

GoogleCodeExporter commented 9 years ago
thx.

Original comment by gbtami on 30 Mar 2008 at 8:47