Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solutions for issues on Windows 10 #14

Open
MattMcManis opened this issue Jan 27, 2021 · 0 comments
Open

Solutions for issues on Windows 10 #14

MattMcManis opened this issue Jan 27, 2021 · 0 comments

Comments

@MattMcManis
Copy link

MattMcManis commented Jan 27, 2021

I had to fix these issues to get it working on Windows 10.

chs


Installation

Command Prompt

cd C:\Users\Matt\AppData\Local\Programs\Python\Python39\Scripts
pip install chs

I had to first install the Visual C++ 14.0 Build Tools or it would give an error.

http://go.microsoft.com/fwlink/?LinkId=691126
or
https://visualstudio.microsoft.com/visual-cpp-build-tools


pwd Module Not Found

Error

ModuleNotFoundError: No module named 'pwd'

Fix
C:\Users\Matt\AppData\Local\Programs\Python\Python39\Lib\site-packages\chs\ui\board.py

Change import pwd to import getpass.


Stockfish File Not Found

Error

Uncaught error "FileNotFoundError", exiting the app.

Fix
C:\Users\Matt\AppData\Local\Programs\Python\Python39\Lib\site-packages\chs\engine\stockfish.py

Full path to stockfish needs to be specified:

if 'Windows' in platform.system():
  engine_path = 'C:\\Program Files\\Stockfish\\stockfish.exe'

Rank Name Error

Error

Uncaught error "NameError", exiting the app.

Fix
C:\Users\Matt\AppData\Local\Programs\Python\Python39\Lib\site-packages\chs\ui\board.py

In def _generate(), rank_i = rank_i - 1, when rank_i reaches 1 in the loop it causes an error in def get_meta_section().

Error with self.get_user().

if rank == 1:
      return '  {}'.format(self.get_user())

to

if rank == 1:
      return '  {}'.format(getpass.getuser())

Chess Pieces displaying as question marks

Change Command Prompt font to DejaVu Sans Mono.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant