kochsebastian / ChessVisionBot

Chessbot using computer vision to play on any chess website
GNU General Public License v3.0
43 stars 22 forks source link

Loading file issue #9

Open beheshtiBlockchain opened 4 years ago

beheshtiBlockchain commented 4 years ago

I am trying to run the python code but as it is shown up and clicked on start playing is showing this error: pic

WARNING:TensorFlow: Error in loading the saved optimizer state. As a result, your model is starting with a freshly initialized optimizer. Exception in Tkinter callback Traceback (most recent call last): File "C:\Anaconda3\lib\tkinter__init.py", line 1705, in call return self.func(*args) File "", line 55, in start_playing game_state = Game_state() File "C:\Users\rayan gostar\Desktop\ChessVisionBot-master\code\game_state_classes.py", line 47, in init self.engine = chess.engine.SimpleEngine.popen_uci("./engine/stockfish-11-64") File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 2452, in popen_uci return cls.popen(UciProtocol, command, timeout=timeout, debug=debug, setpgrp=setpgrp, **popen_args) File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 2444, in popen return run_in_background(background, name=f"{cls.name} (command={command!r})", debug=debug) File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 217, in run_in_background return future.result() File "C:\Anaconda3\lib\concurrent\futures_base.py", line 432, in result return self.get_result() File "C:\Anaconda3\lib\concurrent\futures_base.py", line 384, in get_result raise self._exception File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 211, in background _run(coroutine(future)) File "C:\Anaconda3\lib\asyncio\runners.py", line 43, in run return loop.run_until_complete(main) File "C:\Anaconda3\lib\asyncio\base_events.py", line 584, in run_until_complete return future.result() File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 2432, in background transport, protocol = await Protocol.popen(command, setpgrp=setpgrp, *popen_args) File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 912, in popen return await _get_running_loop().subprocess_exec(cls, command, popen_args) # type: ignore File "C:\Anaconda3\lib\asyncio\base_events.py", line 1533, in subprocess_exec bufsize, kwargs) File "C:\Anaconda3\lib\asyncio\windows_events.py", line 372, in _make_subprocess_transport kwargs) File "C:\Anaconda3\lib\asyncio\base_subprocess.py", line 37, in init stderr=stderr, bufsize=bufsize, kwargs) File "C:\Anaconda3\lib\asyncio\windows_events.py", line 819, in _start bufsize=bufsize, **kwargs) File "C:\Anaconda3\lib\asyncio\windows_utils.py", line 155, in init__ stderr=stderr_wfd, **kwds) File "C:\Anaconda3\lib\subprocess.py", line 775, in init restore_signals, start_new_session) File "C:\Anaconda3\lib\subprocess.py", line 1178, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified

UPDATE:

after running these two lines I got this output.

import chess.engine chess.engine.SimpleEngine.popen_uci("./engine/stockfish-11-64")

Traceback (most recent call last): File "", line 1, in File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 2452, in popen_uci return cls.popen(UciProtocol, command, timeout=timeout, debug=debug, setpgrp=setpgrp, popen_args) File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 2444, in popen return run_in_background(background, name=f"{cls.name} (command={command!r})", debug=debug) File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 217, in run_in_background return future.result() File "C:\Anaconda3\lib\concurrent\futures_base.py", line 432, in result return self.get_result() File "C:\Anaconda3\lib\concurrent\futures_base.py", line 384, in get_result raise self._exception File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 211, in background _run(coroutine(future)) File "C:\Anaconda3\lib\asyncio\runners.py", line 43, in run return loop.run_until_complete(main) File "C:\Anaconda3\lib\asyncio\base_events.py", line 584, in run_until_complete return future.result() File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 2432, in background transport, protocol = await Protocol.popen(command, setpgrp=setpgrp, popen_args) File "C:\Anaconda3\lib\site-packages\chess\engine.py", line 912, in popen return await _get_running_loop().subprocess_exec(cls, *command, popen_args) # type: ignore File "C:\Anaconda3\lib\asyncio\base_events.py", line 1533, in subprocess_exec bufsize, kwargs) File "C:\Anaconda3\lib\asyncio\windows_events.py", line 372, in _make_subprocess_transport kwargs) File "C:\Anaconda3\lib\asyncio\base_subprocess.py", line 37, in init stderr=stderr, bufsize=bufsize, kwargs) File "C:\Anaconda3\lib\asyncio\windows_events.py", line 819, in _start bufsize=bufsize, kwargs) File "C:\Anaconda3\lib\asyncio\windows_utils.py", line 155, in init stderr=stderr_wfd, kwds) File "C:\Anaconda3\lib\subprocess.py", line 775, in init restore_signals, start_new_session) File "C:\Anaconda3\lib\subprocess.py", line 1178, in _execute_child startupinfo) OSError: [WinError 193] %1 is not a valid Win32 application what is 1% in here?

kochsebastian commented 4 years ago

Please fill out the necessary details of the issue template so I can better understand your problem