autogen icon indicating copy to clipboard operation
autogen copied to clipboard

fix(agbench): add encoding='utf-8' to open() calls in GAIA benchmark scripts

Open Ghraven opened this issue 6 months ago • 3 comments

Addresses #5566

Problem

Several open() calls in the GAIA benchmark scripts omit an explicit encoding parameter. Python uses the system default locale encoding when none is specified, which is not UTF-8 on many Windows installations. This causes UnicodeDecodeError when reading files containing non-ASCII characters in non-English environments.

Affected files:

  • benchmarks/GAIA/Scripts/custom_tabulate.py
  • benchmarks/GAIA/Scripts/init_tasks.py
  • benchmarks/GAIA/Templates/MagenticOne/scenario.py

Fix

Add encoding='utf-8' to all open() calls in the above files. This is consistent with the fix in PR #7648 which addressed the same issue in task_centric_memory utilities.

Ghraven avatar May 06 '26 00:05 Ghraven

@microsoft-github-policy-service agree

Ghraven avatar May 06 '26 00:05 Ghraven

ใช้ NEXORA stack บน Windows locale ไทย

nexoracontrol-ops avatar May 09 '26 12:05 nexoracontrol-ops

Hi! Just checking in on this one. The fix prevents UnicodeDecodeError on Windows systems with non-English locales when running GAIA benchmark scripts. Happy to add tests or adjust if there's a preferred approach. Thanks!

Ghraven avatar May 17 '26 17:05 Ghraven