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

instructions on how to properly add stockfish to your path would be appreciated #2

Open
vesper8 opened this issue Feb 7, 2020 · 1 comment

Comments

@vesper8
Copy link

vesper8 commented Feb 7, 2020

I downloaded Stockfish for MAC from the official Stockfish website and unzipped the archive

I tried a few things to add it to my path. I tried adding the executables to my bin path which is already part of my path, but that didn't work

I then tried adding the directory containing the 3 executables to my path, that also didn't work.

Finally, I added the executables to the root of the chess-puzzle-maker folder and edited the analysis.py to explicitly link to the executable (I replaced the _stockfish_command() by "./stockfish-11-64" in analysis.py

And that worked

I also tried running the ./build-stockfish.py but got a build error

And I don't understand how you're supposed to run inv update-stockfish

Some clarification would be much appreciated : )

Thanks for making this!

@linrock
Copy link
Owner

linrock commented Oct 1, 2020

oops, the ./build-stockfish.sh script was broken when i tried it out just now. i just fixed it to use the official stockfish version, which seems to work: https://github.com/official-stockfish/Stockfish

i've also updated the code so that if you run ./build-stockfish.sh to compile your own Stockfish version, it priorities stockfish in your local directory so you don't have to modify your $PATH to get it working.

try installing pip3 install -r requirements.txt to install the python3 dependencies. if that works, then you should have the inv command available to run inv update-stockfish

that said, since you're on mac, you can install stockfish via homebrew (brew install stockfish) to avoid having to compile your own version

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

2 participants