From 094af5ff33722cdb0411362b8429d10310185c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Mon, 28 Oct 2024 08:40:23 +0530 Subject: [PATCH 1/2] Pin Jinja2 to version <3.1 for Sphinx Fixes #241 Pin Jinja2 to version <3.1 for Sphinx in `swebench/harness/constants.py`. * Add `Jinja2<3.1` to the `pip_packages` list for Sphinx in the `SPECS_SPHINX` dictionary. Reference: https://www.ingap.dev/posts/solved-cannot-import-name-environmentfilter-from-jinja2 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/princeton-nlp/SWE-bench/issues/241?shareId=XXXX-XXXX-XXXX-XXXX). --- swebench/harness/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swebench/harness/constants.py b/swebench/harness/constants.py index d032022e..0b86c4ce 100644 --- a/swebench/harness/constants.py +++ b/swebench/harness/constants.py @@ -493,7 +493,7 @@ class TestStatus(Enum): SPECS_SPHINX = { k: { "python": "3.9", - "pip_packages": ["tox==4.16.0", "tox-current-env==0.0.11"], + "pip_packages": ["tox==4.16.0", "tox-current-env==0.0.11", "Jinja2<3.1"], "install": "python -m pip install -e .[test]", "pre_install": ["sed -i 's/pytest/pytest -rA/' tox.ini"], "test_cmd": TEST_SPHINX, From a6e8cbac438c7358428002d48dd6498109d2957f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Sun, 1 Dec 2024 06:29:20 +0530 Subject: [PATCH 2/2] pin exact version --- swebench/harness/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swebench/harness/constants.py b/swebench/harness/constants.py index 0b86c4ce..b9e24249 100644 --- a/swebench/harness/constants.py +++ b/swebench/harness/constants.py @@ -493,7 +493,7 @@ class TestStatus(Enum): SPECS_SPHINX = { k: { "python": "3.9", - "pip_packages": ["tox==4.16.0", "tox-current-env==0.0.11", "Jinja2<3.1"], + "pip_packages": ["tox==4.16.0", "tox-current-env==0.0.11", "Jinja2==3.0.3"], "install": "python -m pip install -e .[test]", "pre_install": ["sed -i 's/pytest/pytest -rA/' tox.ini"], "test_cmd": TEST_SPHINX,