-
Notifications
You must be signed in to change notification settings - Fork 19
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
Exception: Cannot find move c6d5 in opening explorer API response #18
Comments
I'm also seeing this but its giving c7c6:
|
Basically, this means a move in your PGN has never been played on Lichess
(or if it has, has been played later than I believe move 25, which is the
limit of Lichess's opening explorer).
So, the PGN would likely need to be much shorter in order to use it as the
base of the tree from which to generate moves.
…On Tue, 11 Oct 2022 at 15:08, Rob ***@***.***> wrote:
I'm also seeing this but its giving c7c6:
What is the full path to your config.yaml file? (ie. /Users/youruser/BookBuilder/config.yaml): /home/slixperi/BookBuilder/config.yaml
Loading config file...
File loaded!
INFO:root:Starting BookBuilder. Your current dir is /home/slixperi/BookBuilder. Files will be saved to this location.
DEBUG:root:[Move.from_uci('e2e4'), Move.from_uci('e7e5'), Move.from_uci('f2f3'), Move.from_uci('c7c6'), Move.from_uci('d2d4')]
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): explorer.lichess.ovh:443
DEBUG:urllib3.connectionpool:https://explorer.lichess.ovh:443 "GET /lichess?variant=standard&speeds=rapid,classical,correspondence&ratings=2200,2500&recentGames=0&topGames=0&moves=6&play=&fen=rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR%20b%20KQkq%20-%200%201 HTTP/1.1" 200 None
DEBUG:root:likelihoods to get here: [('e5', 0.254397567523063)]
DEBUG:root:cumulative likelihood +25.44%
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): explorer.lichess.ovh:443
DEBUG:urllib3.connectionpool:https://explorer.lichess.ovh:443 "GET /lichess?variant=standard&speeds=rapid,classical,correspondence&ratings=2200,2500&recentGames=0&topGames=0&moves=6&play=&fen=rnbqkbnr/pppp1ppp/8/4p3/4P3/5P2/PPPP2PP/RNBQKBNR%20b%20KQkq%20-%200%202 HTTP/1.1" 200 None
Traceback (most recent call last):
File "/home/slixperi/BookBuilder/workerEngineReduce.py", line 369, in find_opponent_move
move_stats = next(item for item in self.stats['moves'] if item["uci"] == move_uci) #move stats is the next move in self stats moves which matches the move fed into function
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "BookBuilder.py", line 397, in <module>
main()
File "BookBuilder.py", line 393, in main
grower.run()
File "BookBuilder.py", line 305, in run
self.iterator(chapter, opening['Name'])
File "BookBuilder.py", line 313, in iterator
Rooter(self.pgn)
File "BookBuilder.py", line 40, in __init__
pgnList = self._calculate_pgns()
File "BookBuilder.py", line 71, in _calculate_pgns
move_stats, chance = workerPlay.find_opponent_move(move) #we look for the PGN move in the API response, and return the odds of it being played
File "/home/slixperi/BookBuilder/workerEngineReduce.py", line 371, in find_opponent_move
raise Exception(f'Cannot find move {move_uci} in opening explorer API response')
Exception: Cannot find move c7c6 in opening explorer API response
—
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWBKZWH4GQPGMOLWJXSNRTWCVYFTANCNFSM6AAAAAAQ3J7WBQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: