Skip to content

Play against computer option crashed #3

@jun63cn

Description

@jun63cn

Hi,

pygame 2.6.1 (SDL 2.28.4, Python 3.13.13)
Hello from the pygame community. https://www.pygame.org/contribute.html
TTS: 2 voices available:

  • id='HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_ZH-CN_HUIHUI_11.0' name='Microsoft Huihui Desktop - Chinese (Simplified)' langs=['zh-CN']
  • id='HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_ZIRA_11.0' name='Microsoft Zira Desktop - English (United States)' langs=['en-US']
    TTS: voice applied (source=name-hint) actual=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_ZIRA_11.0 -> OK
    TTS: target voice id=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_ZIRA_11.0 (source=name-hint) -> applied
    TTS: rate=170wpm -> SAPI5 Rate=-2
    pygame-menu 4.5.2
    An error occurred while opening the book: [Errno 13] Permission denied: 'I:\Downloads\Compressed\HiresChess\books'
    Engine stockfish-windows-x86-64-avx2.exe opened successfully. Engine ID: Stockfish 18
    Closing engine...{'name': 'Stockfish 18', 'author': 'the Stockfish developers (see AUTHORS file)'}
    engine closed.

Traceback (most recent call last):
File "chessMain.py", line 644, in
File "chessMain.py", line 631, in runMain
File "chessMain.py", line 567, in mainMenu
File "pygame_menu\menu.py", line 2577, in update
File "pygame_menu\widgets\core\widget.py", line 2787, in update_menu
File "pygame_menu\widgets\widget\button.py", line 160, in update
File "pygame_menu\widgets\core\widget.py", line 1265, in apply
File "chessMain.py", line 241, in playComputerGame
File "modes\play_game.py", line 55, in playGame
File "modes\play_game.py", line 528, in playAGame
File "UCIEngines.py", line 351, in bestMove
AttributeError: 'types.SimpleNamespace' object has no attribute 'engine_usebook'
[PYI-10520:ERROR] Failed to execute script 'chessMain' due to unhandled exception!
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions