FS#29273 - pychess

Attached to Project: Community Packages
Opened by Martin Kühne (mar77i) - Wednesday, 04 April 2012, 12:24 GMT
Last edited by Allan McRae (Allan) - Wednesday, 04 April 2012, 13:25 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

after I already wrote an e-mail to the developer, I found out that the bug actually occurs because we sed the source to correct the binary's name, which breaks here with this message:

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pychess/widgets/gamenanny.py", line 113, in cb
createRematch(gamemodel)
File "/usr/lib/python2.7/site-packages/pychess/widgets/newGameDialog.py", line 566, in createRematch
xmlengine = discoverer.getEngines()[binname]
KeyError: 'python2'

Additional info:
pychess-0.10.1-1

Steps to reproduce:
play a chess game in pychess or "Offer Draw" (in "Actions" menu) and try clicking one of the buttons in the yellow panel that appears if you either "offer draw" or finish a game.

Also, I have appended a patch which solves the problem elegantly. The code is written for unix only (not using os.path.* but literal string + "/" + concatenations) and has other similar flaws, which just happen to work here.

Will report back if I find other bugs like this.
This task depends upon

Closed by  Allan McRae (Allan)
Wednesday, 04 April 2012, 13:25 GMT
Reason for closing:  Fixed
Additional comments about closing:  pychess-0.10.1-2
Comment by Allan McRae (Allan) - Wednesday, 04 April 2012, 13:25 GMT
That patch could cause issues... Fixed differently.

Loading...