fowode / pychess

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

Stockfish analyzer breaks pychess #754

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Settings -> Preferences -> {analyzer, inverse analyzer} -> stockfish
2. Restart

What is the expected output? What do you see instead?
1. Analyzer / Inverse Analyzer do not work. Restart again, analyzer (only) is 
reset to PyChess.
2. Settings -> Preferences no longer works

What version of the product are you using?
PyChess: 74573dbc5e0e (2013-03-19)
Stockfish: 0586b51f9c398008f264d78a2888c0d68d9561cb (2013-03-19)

Backtrace (when clicked, Settings -> Preferences)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pychess/Main.py", line 219, in on_preferences_activate
    preferencesDialog.run(gamewidget.getWidgets())
  File "/usr/lib/python2.7/site-packages/pychess/widgets/preferencesDialog.py", line 20, in run
    initialize(widgets)
  File "/usr/lib/python2.7/site-packages/pychess/widgets/preferencesDialog.py", line 26, in initialize
    HintTab(widgets)
  File "/usr/lib/python2.7/site-packages/pychess/widgets/preferencesDialog.py", line 222, in __init__
    lambda combobox, value: set_value(combobox, value, "hint_mode",
  File "/usr/lib/python2.7/site-packages/pychess/System/uistuff.py", line 178, in keep
    setFromConf()
  File "/usr/lib/python2.7/site-packages/pychess/System/uistuff.py", line 169, in setFromConf
    set_value(v)
  File "/usr/lib/python2.7/site-packages/pychess/System/uistuff.py", line 155, in <lambda>
    set_value = lambda v: set_value_(widget, v)
  File "/usr/lib/python2.7/site-packages/pychess/widgets/preferencesDialog.py", line 223, in <lambda>
    "analyzer_check", HINT))
  File "/usr/lib/python2.7/site-packages/pychess/widgets/preferencesDialog.py", line 213, in set_value
    md5 = engine.find('md5').text.strip()
AttributeError: 'dict' object has no attribute 'find'

Original issue reported on code.google.com by OrbisVi...@gmail.com on 19 Mar 2013 at 5:11

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in  Revision: 747e17934241.
Thx!

Original comment by gbtami on 19 Mar 2013 at 10:10