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

could use help implementing this #122

Open
matthewcote opened this issue Nov 30, 2022 · 2 comments
Open

could use help implementing this #122

matthewcote opened this issue Nov 30, 2022 · 2 comments

Comments

@matthewcote
Copy link

trying to make this work, all day.. I cannot seem to properly construct a class instance of stockfish. I keep getting a modulenotfound error.

and, well, I really want to use this engine via python,. Any help would be greatly appreciated. Excuse me, i don't use github often, I am sure this isn't where I should put this request but don't know where it goes.

it says there is no module named stockfish.
I used pip, when I list installed packages I see stockfish...

@johndoknjas
Copy link
Contributor

Hi @matthewcote

If you're having some problems with installing and using the module, a workaround is as follows:

  1. Inside your project directory, create a new python file called "models.py". Then, copy all the models.py code in this git repo into it.

  2. Then in any files where you want to use the Stockfish class, instead of 'from stockfish import Stockfish', do 'from models import Stockfish'. This should allow you to use the Stockfish class in the same way as discussed in the pypi documentation.

Let me know if you have any problems.

@kieferro
Copy link
Contributor

kieferro commented Mar 7, 2023

Hello, this project is no longer maintained in this repo but on this fork. (For more information about this please look here).

If this issue is still relevant, feel free to open it again in the new repo (and also address the suggested solutions) or let me know so I can create a proxy issue and link to it.

If this is no longer relevant, feel free to close this issue.

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

3 participants