You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run the python code but as it is shown up and clicked on start playing is showing this error:
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
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?
The text was updated successfully, but these errors were encountered:
I am trying to run the python code but as it is shown up and clicked on start playing is showing this error:
UPDATE:
after running these two lines I got this output.
The text was updated successfully, but these errors were encountered: