UFO icon indicating copy to clipboard operation
UFO copied to clipboard

_collect_merged_control_list() missing 1 required positional argument: 'command_dispatcher'

Open zuobiaowang opened this issue 10 months ago • 5 comments

╭──────────────────────────────────────────────────────────────────────────────────── 💬 Agent Comment ─────────────────────────────────────────────────────────────────────────────────────╮ │ The Microsoft Word application has been successfully launched. I will now proceed to write down the user's thanks for this year. │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────── 📊 Current Task Results ─────────────────────────────────────────────────────────────────────────────────╮ │ User request in ASSIGN state. Microsoft Word is open and ready for interaction. Next step: focus on the Word window and write down the user's thanks for this year. │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

╭────────────────────────────────────────────────────────────────── 🚀 Round 1, Step 3, Agent: AppAgent/WINWORD.EXE/Word ───────────────────────────────────────────────────────────────────╮ │ Completing the subtask [Write down the user's thanks for this year in the Microsoft Word document.] on application [Word]. │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ 2026-01-04 21:02:29,390 - AppControlInfoStrategy.app_control_info - ERROR - Control info collection failed: AppControlInfoStrategy._collect_merged_control_list() missing 1 required positional argument: 'command_dispatcher' 2026-01-04 21:02:29,395 - ComposedStrategy.AppDataCollectionStrategy - ERROR - Strategy 'app_control_info' raised exception: AppControlInfoStrategy failed: AppControlInfoStrategy._collect_merged_control_list() missing 1 required positional argument: 'command_dispatcher' 2026-01-04 21:02:29,402 - AppAgentLoggingMiddleware.AppAgentLoggingMiddleware - ERROR - Unexpected error in AppAgentProcessor: Strategy AppDataCollectionStrategy failed: Strategy 'app_control_info' raised exception: AppControlInfoStrategy failed: AppControlInfoStrategy._collect_merged_control_list() missing 1 required positional argument: 'command_dispatcher' Error type: Exception Traceback: Exception: Strategy AppDataCollectionStrategy failed: Strategy 'app_control_info' raised exception: AppControlInfoStrategy failed: AppControlInfoStrategy._collect_merged_control_list() missing 1 required positional argument: 'command_dispatcher'

❌ AppAgent: Encountered error - Strategy AppDataCollectionStrategy failed: Strategy 'app_control_info' raised exception: AppControlInfoStrategy failed: AppControlInfoStrategy.collect_merged_control_list() missing 1 required positional argument: 'command_dispatcher' 📊 Evaluating the session... 2026-01-04 21:02:32,564 - ufo.utils - ERROR - Error loading image from logs/2026-01-04-21-01-11/: Traceback (most recent call last): File "D:\Generative\UFO3\ufo\utils_init.py", line 324, in load_image image = Image.open(image_path) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda\envs\UFO3\Lib\site-packages\PIL\Image.py", line 3513, in open fp = builtins.open(filename, "rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: 'logs/2026-01-04-21-01-11/'

2026-01-04 21:02:32,597 - ufo.utils - ERROR - Error loading image from logs/2026-01-04-21-01-11/: Traceback (most recent call last): File "D:\Generative\UFO3\ufo\utils_init_.py", line 324, in load_image image = Image.open(image_path) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda\envs\UFO3\Lib\site-packages\PIL\Image.py", line 3513, in open fp = builtins.open(filename, "rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: 'logs/2026-01-04-21-01-11/'

2026-01-04 21:02:32,602 - ufo.utils - ERROR - Error loading image from logs/2026-01-04-21-01-11/: Traceback (most recent call last): File "D:\Generative\UFO3\ufo\utils_init_.py", line 324, in load_image image = Image.open(image_path) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda\envs\UFO3\Lib\site-packages\PIL\Image.py", line 3513, in open fp = builtins.open(filename, "rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: 'logs/2026-01-04-21-01-11/'

2026-01-04 21:02:32,662 - ufo.utils - ERROR - Error loading image from logs/2026-01-04-21-01-11/: Traceback (most recent call last): File "D:\Generative\UFO3\ufo\utils_init_.py", line 324, in load_image image = Image.open(image_path) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda\envs\UFO3\Lib\site-packages\PIL\Image.py", line 3513, in open fp = builtins.open(filename, "rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: 'logs/2026-01-04-21-01-11/'

2026-01-04 21:02:32,667 - ufo.utils - ERROR - Error loading image from logs/2026-01-04-21-01-11/: Traceback (most recent call last): File "D:\Generative\UFO3\ufo\utils_init_.py", line 324, in load_image image = Image.open(image_path) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda\envs\UFO3\Lib\site-packages\PIL\Image.py", line 3513, in open fp = builtins.open(filename, "rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: 'logs/2026-01-04-21-01-11/'

2026-01-04 21:02:32,677 - ufo.utils - ERROR - Error loading image from logs/2026-01-04-21-01-11/: Traceback (most recent call last): File "D:\Generative\UFO3\ufo\utils_init_.py", line 324, in load_image image = Image.open(image_path) ^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda\envs\UFO3\Lib\site-packages\PIL\Image.py", line 3513, in open fp = builtins.open(filename, "rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: 'logs/2026-01-04-21-01-11/'

zuobiaowang avatar Jan 04 '26 13:01 zuobiaowang

I've fixed it on the main branch, can you please check if it works?

vyokky avatar Jan 06 '26 07:01 vyokky

I got fixed source code from MSFT expert, and it works. Thanks.

zuobiaowang avatar Jan 06 '26 10:01 zuobiaowang

This issue has been fixed in PR #285 (commit 278a61e4) which added the missing command_dispatcher argument to the _collect_merged_control_list() call.

The fix is already merged into main. Since the reporter confirmed it works, this issue can be closed.

Chase-Xuu avatar Feb 09 '26 21:02 Chase-Xuu

Closing as this was resolved in PR #285.

Chase-Xuu avatar Feb 09 '26 21:02 Chase-Xuu

fixed, thanks.

zuobiaowang avatar Feb 10 '26 02:02 zuobiaowang