TypeError: 'NoneType' object is not subscriptable running the chess example #335
Unanswered
techybolek
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Have you modified anything in the notebook? It works in my test. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When running the chess example https://github.com/microsoft/autogen/blob/main/notebook/agentchat_chess.ipynb
I get an error:
TypeError: 'NoneType' object is not subscriptable
I've tried both in colab as well as on my local machine.
Full stack:
Player black (to Player white):
Your turn.
<path d="M 24,18 C 24.38,20.91 18.45,25.37 16,27 C 13,29 13.18,
Player white (to Player black):
I'll start with the classic opening, <my_player_name>. e2e4. Let's see how you respond to this.
TypeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 player_black.initiate_chat(player_white, message="Your turn.")
51 frames
in _generate_board_reply(self, messages, sender, config)
30 # extract a UCI move from player's message
31 reply = self.generate_reply(self.correct_move_messages[sender] + [message], sender, exclude=[BoardAgent._generate_board_reply])
---> 32 uci_move = reply if isinstance(reply, str) else str(reply["content"])
33 try:
34 self.board.push_uci(uci_move)
TypeError: 'NoneType' object is not subscriptable
Beta Was this translation helpful? Give feedback.
All reactions