Closed API-Troubles closed 9 months ago
This library is not a standalone, but only a wrapper. That means you need an executable Stockfish file, which you can download here or install on a Debian-based system with sudo apt install stockfish
.
And then you would need to specify the path to this file like in this example here.
I don't know how replit.com works exactly, but if you can't upload executables or install packages there, then it's possible that you just can't use this library.
Ah got it!
Kind of confusing since the API Docs suggests that you can run the class without any file.
Anyway, do you mind pointing me towards the correct executable (If it matters replit.com runs off a version of linux)?
Thanks for the help so far!
Kind of confusing since the API Docs suggests that you can run the class without any file.
Yes, that's right, that's because there's a default value, but I'll adjust that.
Anyway, do you mind pointing me towards the correct executable
I don't know exactly how replit.com works. So I don't know what the best method is for you. If you just need a downloadable version of Stockfish, look here: https://stockfishchess.org/download/
If you have access to a terminal and it's a Debian-based system, you can also try sudo apt install stockfish
. But this is not going to be the latest version of Stockfish. If you need the latest version, you would have to compile from source.
Sorry, forgot to close this issue.
I sucessfully ran the stockfish class now.
Thanks for your help!
Hi folks!
I'm quite new to this pypi package. I'm trying to run an instance of stockfish but have encountered this error (I ran this in replit.com).
Here is the code I ran:
Any help is appreciated. Thanks in advance!