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]
Enh: Human readable error if < py3.11 (#931)
Kilian Lieretba555859d1ff
diff --git a/sweagent/__init__.py b/sweagent/__init__.pyindex ab7d5e7f..f925de8d 100644--- a/sweagent/__init__.py+++ b/sweagent/__init__.py@@ -1,5 +1,6 @@from __future__ import annotations+import sysfrom functools import partialfrom git import Repo@@ -23,6 +24,14 @@ getLogger("numexpr.utils").setLevel(WARNING)getLogger("LiteLLM").setLevel(WARNING)PACKAGE_DIR = Path(__file__).resolve().parent++if sys.version_info < (3, 11):+ msg = (+ f"Python {sys.version_info.major}.{sys.version_info.minor} is not supported. "+ "SWE-agent requires Python 3.11 or higher."+ )+ raise RuntimeError(msg)+assert PACKAGE_DIR.is_dir(), PACKAGE_DIRREPO_ROOT = PACKAGE_DIR.parentassert REPO_ROOT.is_dir(), REPO_ROOT