I'm trying to get stockfish for python working but I am running into issues. This is my code so far.
from stockfish import Stockfish
stockfish = Stockfish('/Users/Me/opt/anaconda3/lib/python3.9/site-packages/stockfish/models.py')
This returns a OSError: [Errno 8] Exec format error: '/Users/Me/opt/anaconda3/lib/python3.9/site-packages/stockfish/models.py'
This is where I downloaded the package from: https://pypi.org/project/stockfish/. After this, as I have a Mac, I downloaded it through homebrew and my installation has a path /opt/homebrew/Cellar/stockfish/15
, but this also does not work.
Any help would be greatly appreciated.