A programming framework for agentic AI
fix: [autogenbench] windows fails unless we specify encoding (#1957)
Eduardo Salinasa814ba54de56
diff --git a/samples/tools/autogenbench/autogenbench/run_cmd.py b/samples/tools/autogenbench/autogenbench/run_cmd.pyindex d4f6d3fac..e548a16b8 100644--- a/samples/tools/autogenbench/autogenbench/run_cmd.py+++ b/samples/tools/autogenbench/autogenbench/run_cmd.py@@ -492,7 +492,7 @@ echo RUN.SH COMPLETE !#!#docker_timeout = timeout + 60 # One full minute after the bash timeout command should have already triggeredstart_time = time.time()logs = container.logs(stream=True)- log_file = open(os.path.join(work_dir, "console_log.txt"), "wt")+ log_file = open(os.path.join(work_dir, "console_log.txt"), "wt", encoding="utf-8")stopping = Falsefor chunk in logs: # When streaming it should return a generator