Skip to main content
Became Hot Network Question
removed unnecessary text based on https://meta.stackexchange.com/q/2950/476162
Source Link
SecretAgentMan
  • 4.6k
  • 2
  • 18
  • 48

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.

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.

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.

Post Undeleted by Ozzy08
Post Deleted by Ozzy08
Post Undeleted by Ozzy08
Post Deleted by Ozzy08
Post Undeleted by Ozzy08
Post Deleted by Ozzy08
Source Link
Ozzy08
  • 121
  • 6

Can't properly use python stockfish package in Mac

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.