Skip to content

Commit

Permalink
fix: [autogenbench] windows fails unless we specify encoding (#1957)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalo authored Mar 12, 2024
1 parent 99df2c5 commit a814ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/tools/autogenbench/autogenbench/run_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def run_scenario_in_docker(work_dir, env, timeout=TASK_TIMEOUT, docker_image=Non
docker_timeout = timeout + 60 # One full minute after the bash timeout command should have already triggered
start_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 = False

for chunk in logs: # When streaming it should return a generator
Expand Down

0 comments on commit a814ba5

Please sign in to comment.