A chess library for Python, with move generation and validation, PGN parsing and writing, Polyglot opening book reading, Gaviota tablebase probing, Syzygy tablebase probing, and UCI/XBoard engine communication
I'm experiencing an AssertionError when trying to analyze a chess board using Chessify UCI chess engine. The error occurs after the analysis is completed and seems to be related to the internal state management of engine communication.
Exception in callback Protocol._line_received('')
handle: <Handle Protocol._line_received('')>
Traceback (most recent call last):
File "C:\Users\Manta\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "E:\Projects\UniversalChessTool\.venv\lib\site-packages\chess\engine.py", line 1093, in _line_received
self.command._line_received(self, line)
File "E:\Projects\UniversalChessTool\.venv\lib\site-packages\chess\engine.py", line 1385, in _line_received
assert self.state in [CommandState.ACTIVE, CommandState.CANCELLING]
AssertionError
Additional Context:
The issue occurs consistently with the above setup.
The analysis result is correct; the issue seems to be purely related to internal state handling in the python-chess library.
I'm experiencing an
AssertionError
when trying to analyze a chess board using Chessify UCI chess engine. The error occurs after the analysis is completed and seems to be related to the internal state management of engine communication.Minimal code to reproduce:
Stacktrace:
self.state
has valueCommandState.DONE
result
:Expected Behavior: The analysis should complete without any errors, and the engine should return the analysis results.
Environment: Python version: 3.10 python-chess version: 1.10 Operating System: Windows 10 Chess Engine Used: ChessifyClientStockfish
Additional Context: The issue occurs consistently with the above setup. The analysis result is correct; the issue seems to be purely related to internal state handling in the python-chess library.