Skip to content

πŸ™Œ OpenHands: AI-Driven Development

need to run as root to use SWEBench container (#2068)

Gantf0271f9f9139
diff --git a/evaluation/swe_bench/swe_env_box.py b/evaluation/swe_bench/swe_env_box.py
index 85133ce744..22f5852fcb 100644
--- a/evaluation/swe_bench/swe_env_box.py
+++ b/evaluation/swe_bench/swe_env_box.py
@@ -86,7 +86,8 @@ class SWEBenchSSHBox(DockerSSHBox):
# linting python after editing helps LLM fix indentations
config.enable_auto_lint = True
-
+ # Need to run as root to use SWEBench container
+ config.run_as_devin = False
sandbox = cls(
container_image=SWE_BENCH_CONTAINER_IMAGE,
swe_instance_id=instance['instance_id'],