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
fetch the latest changes - TypeError: 'NoneType' object is not subscriptable #464
Comments
Which one did u use? |
Can you share backend log. |
I used bing with ollama codeqwen, its not a one time thing either happens every time the same error. @ARajgor is this sufficient? The is all from the cmd window I do see a log devika_agent.log is that what you are referring to or is there another log? 24.04.20 08:42:03: root: INFO : /api/data GET 24.04.20 08:42:08: root: INFO : /api/create-project POST 24.04.20 08:42:08: root: INFO : /api/get-agent-state POST 24.04.20 08:42:28: root: INFO : SOCKET server-message MESSAGE: {'messages': {'from_devika': False, 'message': 'create simple tic tac to in python', 'timestamp': '2024-04-20 08:42:28'}} plan :: Project Name: TicTacToe Your Reply to the Human Prompter: I am going to create a simple Tic Tac Toe game in Python using command line interface. Current Focus: Implementing the game logic and user input handling. Plan:
Summary: This plan will create a simple Tic Tac Toe game in Python using command line interface. It will include functions for initializing the board, printing the current state of the board, input validation, game rules, and handling the game loop. 24.04.20 08:42:53: root: INFO : SOCKET agent-state MESSAGE: [{'internal_monologue': None, 'browser_session': {'url': None, 'screenshot': None}, 'terminal_session': {'command': None, 'output': None, 'title': None}, 'step': None, 'message': None, 'completed': False, 'agent_is_active': True, 'token_usage': 603, 'timestamp': '2024-04-20 08:42:28'}] context_keywords :: ['input', 'logic', 'implementing', 'game', 'handling'] 24.04.20 08:42:54: root: INFO : SOCKET tokens MESSAGE: {'token_usage': 1319} internal_monologue :: Sure, I can start by initializing the board with empty spaces. 24.04.20 08:42:56: root: INFO : SOCKET agent-state MESSAGE: [{'internal_monologue': None, 'browser_session': {'url': None, 'screenshot': None}, 'terminal_session': {'command': None, 'output': None, 'title': None}, 'step': None, 'message': None, 'completed': False, 'agent_is_active': True, 'token_usage': 983, 'timestamp': '2024-04-20 08:42:28'}, {'internal_monologue': 'Sure, I can start by initializing the board with empty spaces.', 'browser_session': {'url': None, 'screenshot': None}, 'terminal_session': {'command': None, 'output': None, 'title': None}, 'step': None, 'message': None, 'completed': False, 'agent_is_active': True, 'token_usage': 0, 'timestamp': '2024-04-20 08:42:56'}] research :: {'queries': ['How to implement Tic Tac Toe in Python', 'Understanding game logic for Tic Tac Toe'], 'ask_user': ''} 24.04.20 08:43:00: root: INFO : SOCKET server-message MESSAGE: {'messages': {'from_devika': True, 'message': 'I am browsing the web to research the following queries: How to implement Tic Tac Toe in Python, Understanding game logic for Tic Tac Toe.\n If I need anything, I will make sure to ask you.', 'timestamp': '2024-04-20 08:43:00'}} |
Here Bing api didn't return web result that's why it can't find the url |
Originally posted by @ARajgor in #47 (comment)
I'm having this same issue and ironically I was doing a simple tic tac to as a test. But I'm up to date as of this-morning and this was closed 2 weeks ago I think.
Search Engine :: bing
Exception in thread Thread-6 ():
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1073, in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1008.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "D:\Github\devika\devika.py", line 94, in
thread = Thread(target=lambda: agent.execute(message, project_name))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Github\devika\src\agents\agent.py", line 346, in execute
search_results = self.search_queries(queries, project_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Github\devika\src\agents\agent.py", line 106, in search_queries
link = web_search.get_first_link()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Github\devika\src\browser\search.py", line 32, in get_first_link
return self.query_result["webPages"]["value"][0]["url"]
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered: