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

Loading file issue #9

Open
beheshtiBlockchain opened this issue Aug 17, 2020 · 1 comment
Open

Loading file issue #9

beheshtiBlockchain opened this issue Aug 17, 2020 · 1 comment

Comments

@beheshtiBlockchain
Copy link

beheshtiBlockchain commented Aug 17, 2020

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants