AWorld
AWorld copied to clipboard
gaia 复现到Running the Application 这一步出错
前面的环境,包都安装好了。 环境是win11 cursor conda
(aworld) C:\use\research\LLM\agent\AWorld>uv run excel-mcp-server sse
Excel MCP Server - SSE mode
----------------------
Press Ctrl+C to exit
INFO: Started server process [55972]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
这里起了server之后用另一个终端
先试了一下发现代码里面有个Task没有被定义,就增加了一行 from aworld.core.task import Task
然后就运行一下命令的结果。
(aworld) C:\use\research\LLM\agent\AWorld>python ./examples/gaia/run.py
2025-05-25 22:13:08,708 - common - DEBUG - Attempting to import dotenv
2025-05-25 22:13:08,709 - common - DEBUG - Successfully imported dotenv
2025-05-25 22:13:12,281 - common - INFO - browser has an async type, will add `async_` prefix.
2025-05-25 22:13:12,297 - common - INFO - openai_gym has an async type, will add `async_` prefix.
2025-05-25 22:13:12,317 - common - INFO - mcp has an async type, will add `async_` prefix.
2025-05-25 22:13:12,344 - common - DEBUG - C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\aworld\config\html_tool.yaml not exists, please check it.
2025-05-25 22:13:12,345 - common - DEBUG - Can not find the file: C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\aworld\config\html_tool.yaml
2025-05-25 22:13:12,345 - common - DEBUG - can not load conf from html_tool.yaml
2025-05-25 22:13:12,399 - common - DEBUG - Attempting to import opentelemetry.trace
2025-05-25 22:13:12,399 - common - DEBUG - Successfully imported opentelemetry.trace
2025-05-25 22:13:12,400 - common - DEBUG - Attempting to import opentelemetry.sdk.trace
2025-05-25 22:13:12,401 - common - DEBUG - Successfully imported opentelemetry.sdk.trace
2025-05-25 22:13:12,402 - common - DEBUG - Attempting to import opentelemetry.sdk.trace.export
2025-05-25 22:13:12,404 - common - DEBUG - Successfully imported opentelemetry.sdk.trace.export
2025-05-25 22:13:12,405 - common - DEBUG - Attempting to import flask
2025-05-25 22:13:12,519 - common - DEBUG - Successfully imported flask
2025-05-25 22:13:12,546 - common - WARNING - LOGFIRE_WRITE_TOKEN is not set, using memory backend
2025-05-25 22:13:12,553 - common - DEBUG - Attempting to import opentelemetry.trace
2025-05-25 22:13:12,553 - common - DEBUG - Successfully imported opentelemetry.trace
2025-05-25 22:13:12,555 - common - DEBUG - Attempting to import opentelemetry.sdk.trace
2025-05-25 22:13:12,555 - common - DEBUG - Successfully imported opentelemetry.sdk.trace
2025-05-25 22:13:12,557 - common - DEBUG - Attempting to import opentelemetry.sdk.trace.export
2025-05-25 22:13:12,557 - common - DEBUG - Successfully imported opentelemetry.sdk.trace.export
2025-05-25 22:13:12,559 - common - DEBUG - Attempting to import opentelemetry.instrumentation.system_metrics
2025-05-25 22:13:12,665 - common - DEBUG - Successfully imported opentelemetry.instrumentation.system_metrics
2025-05-25 22:13:12,709 - common - INFO - Using in-memory storage for traces.
2025-05-25 22:13:12,709 - common - INFO - Starting trace server on port 8000.
No handlers found, adding a StreamHandler. logger= traced
C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\pydantic\_internal\_fields.py:132: UserWarning: Field "model_output" in AgentHistory has conflict with protected namespace "model_".
You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
warnings.warn(
* Serving Flask app 'aworld.trace.server.routes'
* Debug mode: off
2025-05-25 22:13:12,755 - [] - [] - common - DEBUG - Attempting to import dotenv
2025-05-25 22:13:12,756 - [] - [] - common - DEBUG - Successfully imported dotenv
2025-05-25 22:13:12,759 - [] - [] - werkzeug - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:8000
2025-05-25 22:13:12,760 - [] - [] - werkzeug - INFO - Press CTRL+C to quit
2025-05-25 22:13:12,796 - [] - [] - root - INFO - Total questions: 165
2025-05-25 22:13:12,797 - [] - [] - common - INFO - MainThread thread create <class 'aworld.core.context.base.Context'> instance.
2025-05-25 22:13:12,797 - [] - [] - root - INFO - Start to process: c61d22de-5f6c-4958-a7f6-5e9707bd3466
2025-05-25 22:13:12,799 - [] - [] - root - INFO - Detail: {'task_id': 'c61d22de-5f6c-4958-a7f6-5e9707bd3466', 'Question': 'A paper about AI regulation that was originally submitted to arXiv.org in June 2022 shows a figure with three axes, where each axis has a label word at both ends. Which of these words is used to describe a type of society in a Physics and Society article submitted to arXiv.org on August 11, 2016?', 'Level': 2, 'Final answer': 'egalitarian', 'file_name': '', 'Annotator Metadata': {'Steps': '1. Go to arxiv.org and navigate to the Advanced Search page.\n2. Enter "AI regulation" in the search box and select "All fields" from the dropdown.\n3. Enter 2022-06-01 and 2022-07-01 into the date inputs, select "Submission date (original)", and submit the search.\n4. Go through the search results to find the article that has a figure with three axes and labels on each end of the axes, titled "Fairness in Agreement With European Values: An Interdisciplinary Perspective on AI Regulation".\n5. Note the six words used as labels: deontological, egalitarian, localized, standardized, utilitarian, and consequential.\n6. Go back to arxiv.org\n7. Find "Physics and Society" and go to the page for the "Physics and Society" category.\n8. Note that the tag for this category is "physics.soc-ph".\n9. Go to the Advanced Search page.\n10. Enter "physics.soc-ph" in the search box and select "All fields" from the dropdown.\n11. Enter 2016-08-11 and 2016-08-12 into the date inputs, select "Submission date (original)", and submit the search.\n12. Search for instances of the six words in the results to find the paper titled "Phase transition from egalitarian to hierarchical societies driven by competition between cognitive and social constraints", indicating that "egalit2025-05-25 22:13:12,800 - [] - [] - root - INFO - Ques2025-05-25 22:13:12,802025-05-25 22:13:122025-05-25 22:13:122025-05-25 22:13:122025-05-25 22:13:12,800 - [] - [] - ro2025-05-25 22:13:12,800 - [] - [] - root - INFO - Question: A paper about AI regulation that was originally submitted to arXiv.org in June 2022 shows a figure with three axes, where each axis has a label word at both ends. Which of these words is used to describe a type of society in a Physics and Society ar2025-05-25 22:13:12,800 - [] - [] - root - INFO - Question: A paper about AI regulation that was originally submitted to arXiv.org in June 2022 shows a figure with three axes, where each axis has a label woally submitted to arXiv.org in June 2022 shows a figure with three axes, where each axis has a label word at both ends. Which of these words is used to describe a type of society in a Physics and Society arrd at both ends. Which of these words is used to describe a type of society in a Physics and Society article submitted to arXiv.org on August 11, 2016?
2025-05-25 22:13:12,801 - [] - [] - root - INFO - Level: 2
2025-05-25 22:13:12,801 - [] - [] - root - INFO - Tools: 1. Web browser
2. Image recognition tools (to identify and parse a figure with three axes)
2025-05-25 22:13:12,809 - [09fe78bf522f1639e8b8103a0eb125e3] - [5a1568f6476f7896] - common - WARNI no agent policy, will return origin observation.
2025-05-25 22:13:12,810 - [09fe78bf522f1639e8b8103a0eb125e3] - [8528480a894d0158] - opentelemetry.attributes - WARNING - Invalid type NoneType for attribute 'pre_agent' value. Expected one of ['bool', 'str', 'bytes', 'int', 'float'] or a sequence of those types
2025-05-25 22:13:12,812 - [09fe78bf522f1639e8b8103a0eb125e3] - [8528480a894d0158] - common - WARNING - async_mcp no action!
2025-05-25 22:13:12,813 - [09fe78bf522f1639e8b8103a0eb125e3] - [8528480a894d0158] - common - INFO - mcp conf path: C:\use\research\LLM\agent\AWorld\examples\gaia\mcp.json
2025-05-25 22:13:12,814 - [09fe78bf522f1639e8b8103a0eb125e3] - [8528480a894d0158] - root - INFO - Replaced ${E2B_API_KEY} with
2025-05-25 22:13:12,815 - [09fe78bf522f1639e8b8103a0eb125e3] - [8528480a894d0158] - root - INFO - Replaced ${FILESYSTEM_SERVER_WORKDIR} with
2025-05-25 22:13:12,815 - [09fe78bf522f1639e8b8103a0eb125e3] - [8528480a894d0158] - root - INFO - Replaced ${GOOGLE_API_KEY} with
2025-05-25 22:13:12,816 - [09fe78bf522f1639e8b8103a0eb125e3] - [8528480a894d0158] - root - INFO - Replaced ${GOOGLE_SEARCH_ENGINE_ID} with
2025-05-25 22:14:53,331 - [09fe78bf522f1639e8b8103a0eb125e3] - [8528480a894d0158] - root - ERROR - Error initializing MCP server: Timed out while waiting for response to ClientRequest. Waited 0:01:00 seconds.
2025-05-25 22:14:53,436 - [09fe78bf522f1639e8b8103a0eb125e3] - [8528480a894d0158] - root - ERROR - Error closing exit stack during cleanup: unhandled errors in a TaskGroup (1 sub-exception)
2025-05-25 22:14:53,443 - [09fe78bf522f1639e8b8103a0eb125e3] - [8528480a894d0158] - root - ERROR - Failed to get tools for MCP server 'mcp__youtube_server'.
Error: Timed out while waiting for response to ClientRequest. Waited 0:01:00 seconds.
Traceback:
Traceback (most recent call last):
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\anyio\streams\memory.py", line 111, in receive
return self.receive_nowait()
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\anyio\streams\memory.py", line 106, in receive_nowait
raise WouldBlock
anyio.WouldBlock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\anyio\_core\_tasks.py", line 115, in fail_after
yield cancel_scope
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\mcp\shared\session.py", line 252, in send_request
response_or_error = await response_stream_reader.receive()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\anyio\streams\memory.py", line 119, in receive
await receive_event.wait()
File "C:\Users\45403\anaconda3\envs\aworld\Lib\asyncio\locks.py", line 213, in wait
await fut
asyncio.exceptions.CancelledError: Cancelled by cancel scope 2d22344ac10
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\mcp\shared\session.py", line 247, in send_request
with anyio.fail_after(
File "C:\Users\45403\anaconda3\envs\aworld\Lib\contextlib.py", line 158, in __exit__
self.gen.throw(typ, value, traceback)
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\anyio\_core\_tasks.py", line 118, in fail_after
raise TimeoutError
TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\aworld\mcp\utils.py", line 220, in mcp_tool_desc_transform
server = await stack.enter_async_context(server)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\45403\anaconda3\envs\aworld\Lib\contextlib.py", line 650, in enter_async_context
result = await _enter(cm)
^^^^^^^^^^^^^^^^
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\aworld\mcp\server.py", line 91, in __aenter__
await self.connect()
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\aworld\mcp\server.py", line 117, in connect
await session.initialize()
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\mcp\client\session.py", line 122, in initialize
result = await self.send_request(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\mcp\shared\session.py", line 254, in send_request
raise McpError(
mcp.shared.exceptions.McpError: Timed out while waiting for response to ClientRequest. Waited 0:01:00 seconds.
2025-05-25 22:15:11.683 | INFO | examples.gaia.utils:report_results:167 - Overall Statistics:
Traceback (most recent call last):
File "C:\use\research\LLM\agent\AWorld\examples\gaia\run.py", line 260, in <module>
report_results(results)
File "C:\Users\45403\anaconda3\envs\aworld\Lib\site-packages\examples\gaia\utils.py", line 168, in report_results
overall_accuracy = (total_correct / total_entries) * 100
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
ZeroDivisionError: division by zero
Hi, we recommend to use the much easier way to run gaia test: https://github.com/inclusionAI/AWorld/blob/main/README-local.md
Also, make sure that all the MCP tools are configured with the write key in the .env file and started. Feel free to ask any further questions.