SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Pass Python version to get_environment_yml
Chris Watersondf48294d48cc
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.pyindex d117d9a3..1060ba02 100644--- a/sweagent/environment/swe_env.py+++ b/sweagent/environment/swe_env.py@@ -707,7 +707,8 @@ class SWEEnv(gym.Env):self.communicate(f"rm {PATH_TO_REQS}")elif packages == "environment.yml":# Write environment.yml to file- content_env_yml = get_environment_yml(self.record, env_name)+ content_env_yml = get_environment_yml(+ self.record, env_name, python_version=install_configs["python"])copy_file_to_container(self.container_obj, content_env_yml, PATH_TO_ENV_YML)if "no_use_env" in install_configs and install_configs["no_use_env"]:# Create conda environment