0

I'm trying to run a program that requires the modules chess and chess.uci.

I do the "py -m pip install chess", but get the error message

File "D:\Pythonfiler\sjakk\PySimpleGUI\Chess\Demo_Chess_AGAINST_AI.py", line 7, in import chess.uci ModuleNotFoundError: No module named 'chess.uci'

Anyone got an idea what I could do? Or what I'm doing wrong?

Patzer
  • 25
  • 4

1 Answers1

0

Demo script is old and was built at 24 Oct 2018, some steps required to run.

  • Download the StockFish Chess engine at: https://stockfishchess.org/download/, and unzip it to a holder, it is required to provide the path of the specified file when script start.
  • This script come with some png files, so you cannot run it directly, try to https://github.com/PySimpleGUI/PySimpleGUI and download zip file PySimpleGUI-master.zip under button Code, then unzip to a holder where you can find the holder PySimpleGUI-master\Chess with script file and png files.
  • Install python-chess==0.25.1 for old library used when demo script designed
  • run the script Demo_Chess_AGAINST_AI.py under holder PySimpleGUI-master\Chess
  • Need to set some parameters on the right side of GUI before you move any chess, or it will be failed.
Jason Yang
  • 11,284
  • 2
  • 9
  • 23