A
A
AlessandrIT2019-06-07 23:38:01
Python
AlessandrIT, 2019-06-07 23:38:01

subprocess module error - The specified file cannot be found - how to solve?

Hello. I've been hacking pystockfish, when I try to run I get an error

File "C:\Py\chess.py", line 7, in <module>
    deep = Engine(depth=20)
  File "C:\Program Files\Python36\lib\site-packages\pystockfish.py", line 128, in __init__
    stdout=subprocess.PIPE, )
  File "C:\Program Files\Python36\lib\subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "C:\Program Files\Python36\lib\subprocess.py", line 1017, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] Не удается найти указанный файл

I apply
the code
from pystockfish import *

deep = Engine(depth=20)
deep.setposition(['e2e4'])
deep.bestmove()
chess.py
I can't figure out what the hell it is. What do you think?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem @Jump, 2019-06-08
curated by the

First, see if the desired file exists at the specified path.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question